Created
September 27, 2017 20:05
-
-
Save 0xAhmed/0ae709b4930a46642858996cdabab172 to your computer and use it in GitHub Desktop.
Example k8s Deployment
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
| kind: Deployment | |
| apiVersion: extensions/v1beta1 | |
| metadata: | |
| name: kubeapp-production | |
| spec: | |
| replicas: 3 | |
| template: | |
| metadata: | |
| name: kubeapp | |
| labels: | |
| app: kubeapp | |
| env: production | |
| spec: | |
| containers: | |
| - name: kubeapp | |
| image: gcr.io/PROJECT_ID/app:1.0 | |
| imagePullPolicy: Always | |
| readinessProbe: | |
| httpGet: | |
| path: /health | |
| port: 8080 | |
| command: ["/app"] | |
| ports: | |
| - name: kubeapp | |
| containerPort: 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment