Created
September 3, 2019 13:32
-
-
Save evrardjp/5041c6782a7bd8cc19710f4a8c9255f6 to your computer and use it in GitHub Desktop.
caasp4-port-forward-min-demo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: nginx-example | |
labels: | |
app: nginx | |
--- | |
apiVersion: apps/v1beta1 | |
kind: Deployment | |
metadata: | |
name: nginx-deployment | |
namespace: nginx-example | |
spec: | |
replicas: 3 | |
template: | |
metadata: | |
labels: | |
app: nginx | |
spec: | |
containers: | |
- image: nginx:1.16.0-alpine | |
name: nginx | |
ports: | |
- containerPort: 80 | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
app: nginx | |
name: nginx-through-clusterip | |
namespace: nginx-example | |
spec: | |
ports: | |
- port: 8082 | |
targetPort: 80 | |
selector: | |
app: nginx | |
type: ClusterIP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.