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]
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is the command to roll back to a previous revision?

A

kubectl rollout undo deployment [name] - - to revision=#

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

by default how many number of pods does deployment have running at all times?

A

at least 25% (max unavailable)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

scale a deployment.

A

kubectl scale deployment [name] - -replicas=10

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

change the current image.

A

kubectl set image deployment [name] cont name=new image

How well did you know this?
1
Not at all
2
3
4
5
Perfectly