Chapter 10. Deployments Flashcards

1
Q

Command to resize a deployment:

A

kubectl scale deployments kuard –replicas=2

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

What different strategies are supported by deployments ?

A

Recreate

RollingUpdate

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

Command to get the status of a current deployment in progress:

A

kubectl rollout status deployments kuard

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

Command to get the history of rollouts associated with a deployment:

A

kubectl rollout history deployments kuard

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

Command to pause a rollout:

A

kubectl rollout pause deployments kuard

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

Command to resume a rollout

A

kubectl rollout resume deployments kuard

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

Command to obtain more information about a specific revision

A

kubectl rollout history deployment kuard –revision=2

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

Command to rollback a deployment

A

Kubectl rollout undo deployments kuard

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

Command to rollback to a specific revsion

A

kubectl rollout undo deployments kuard –to-revision=3

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

Property to limit the revision history

A

revisionHistoryLimit

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

Which parameter is used to set a maximum of unavailable pods during rollout

A

maxUnavailable

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

Parameter to control the maximum amount of extra resources that need to be created to achieve a rollout

A

maxSurge

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

Parameter to establish the time that deployment must wait before moving into updating the next Pod

A

minReadySeconds

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

Parameter to establish when a deployment can be considered failed

A

progressDeadlineSeconds

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

Command to delete a deployment:

A

Imperative: kubectl delete deployments kuard
Declarative: kubectl delete -f kuard-deployment.yaml

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

Command to delete just a deployment:

A

kubectl delete deployments kuard –cascade=false