commands Flashcards
1
Q
what is the command to see all the deployment history ?
A
- kubectl rollout history deployment [name]
- kubectl rollout history deployment [name]–revison[number]
2
Q
what is the command to roll back to a previous revision?
A
kubectl rollout undo deployment [name] - - to revision=#
3
Q
by default how many number of pods does deployment have running at all times?
A
at least 25% (max unavailable)
4
Q
scale a deployment.
A
kubectl scale deployment [name] - -replicas=10
5
Q
change the current image.
A
kubectl set image deployment [name] cont name=new image