Created
October 3, 2017 13:23
-
-
Save 0xAhmed/9633296ada6ee6e3b7239c0b51dd4d35 to your computer and use it in GitHub Desktop.
Example k8s canary Deployment
This file contains 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-canary | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
name: kubeapp | |
labels: | |
app: kubeapp | |
env: canary | |
spec: | |
containers: | |
- name: kubeapp | |
image: gcr.io/PROJECT_ID/app:2.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