Last active
October 10, 2017 13:08
-
-
Save 0xAhmed/0cb853791ef80b60ab6915789f04275f to your computer and use it in GitHub Desktop.
Applying a 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
# 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