Created
June 6, 2018 18:08
-
-
Save JanneMattila/75d5ec456b3105736c510bc99a5883e0 to your computer and use it in GitHub Desktop.
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: Service | |
| metadata: | |
| name: echo | |
| spec: | |
| selector: | |
| app: echo | |
| ports: | |
| - port: 31111 | |
| nodePort: 31111 | |
| targetPort: 80 | |
| type: NodePort | |
| --- | |
| apiVersion: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: echo | |
| spec: | |
| replicas: 1 | |
| template: | |
| metadata: | |
| labels: | |
| app: echo | |
| spec: | |
| containers: | |
| - image: jannemattila/echo:latest | |
| name: echo | |
| ports: | |
| - containerPort: 80 | |
| name: http | |
| protocol: TCP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment