Created
June 9, 2017 07:52
-
-
Save danielchg/db0727c1d39098cfabf39be332b08cda to your computer and use it in GitHub Desktop.
Kubernetes deployment example
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: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: kopsdemo | |
| labels: | |
| name: kopsdemo | |
| spec: | |
| replicas: 2 | |
| selector: | |
| matchLabels: | |
| name: kopsdemo | |
| template: | |
| metadata: | |
| labels: | |
| name: kopsdemo | |
| spec: | |
| containers: | |
| - image: nginx:latest | |
| name: kopsdemo | |
| ports: | |
| - containerPort: 80 | |
| name: http |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment