Skip to content

Instantly share code, notes, and snippets.

@0xAhmed
Last active October 10, 2017 13:08
Show Gist options
  • Save 0xAhmed/0cb853791ef80b60ab6915789f04275f to your computer and use it in GitHub Desktop.
Save 0xAhmed/0cb853791ef80b60ab6915789f04275f to your computer and use it in GitHub Desktop.
Applying a k8s canary Deployment
# Parse PROJECT_ID in k8s config
$ sed -i.bak "s#PROJECT_ID#$PROJECT_ID#" app-canary.yml
$ kubectl --namespace=production apply -f app-canary.yml
deployment "kubeapp-canary" created
$ kubectl --namespace=production get pods
NAME READY STATUS RESTARTS AGE
kubeapp-canary-469258524-2qjk0 1/1 Running 0 32s
kubeapp-production-1443420586-58njk 1/1 Running 0 1h
kubeapp-production-1443420586-mc5g2 1/1 Running 0 1h
kubeapp-production-1443420586-vf9x6 1/1 Running 0 1h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment