Created
March 17, 2020 08:14
-
-
Save famousgarkin/6495f59df96622541f07861668127f03 to your computer and use it in GitHub Desktop.
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
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