Skip to content

Instantly share code, notes, and snippets.

@0xAhmed
Last active October 10, 2017 13:08
Show Gist options
  • Save 0xAhmed/769dbf1f3c344bbb907aac1bd3d1da24 to your computer and use it in GitHub Desktop.
Save 0xAhmed/769dbf1f3c344bbb907aac1bd3d1da24 to your computer and use it in GitHub Desktop.
Applying a k8s Deployment + Service
$ sed -i.bak "s#PROJECT_ID#$PROJECT_ID#" app-production.yml
$ kubectl --namespace=production apply -f app-production.yml
deployment "kubeapp-production" created
service "kubeapp-production-service" created
$ kubectl --namespace=production rollout status deployment/kubeapp-production
Waiting for rollout to finish: 0 of 3 updated replicas are available...
Waiting for rollout to finish: 2 of 3 updated replicas are available...
deployment "kubeapp-production" successfully rolled out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment