Skip to content

Instantly share code, notes, and snippets.

@famousgarkin
Created March 17, 2020 08:14
Show Gist options
  • Save famousgarkin/6495f59df96622541f07861668127f03 to your computer and use it in GitHub Desktop.
Save famousgarkin/6495f59df96622541f07861668127f03 to your computer and use it in GitHub Desktop.
set -ex
# https://kubernetes.io/docs/tasks/run-application/run-stateless-application-deployment/
# create
kubectl apply -f https://k8s.io/examples/application/deployment.yaml
kubectl describe deployment nginx-deployment
kubectl get pods -l app=nginx
sleep 20s
# update
kubectl apply -f https://k8s.io/examples/application/deployment-update.yaml
kubectl get pods -l app=nginx
sleep 20s
# scale
kubectl apply -f https://k8s.io/examples/application/deployment-scale.yaml
kubectl get pods -l app=nginx
sleep 20s
# delete
kubectl delete deployment nginx-deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment