Chapter 9. ReplicaSets Flashcards

1
Q

Why do we want to use replicas ?

A

Redundancy
Multiple running instances mean failure can be tolerated.

Scale
Multiple running instances mean that more requests can be handled.

Sharding
Different replicas can handle different parts of a computation in parallel.

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

What is a replicaSet ?

A

A ReplicaSet acts as a cluster-wide Pod manager, ensuring that the right types and number of Pods are running at all times.

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

What is a reconciliation loop ?

A

The actual act of managing the replicated Pods

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

Command to scale replicas ?

A

kubectl scale replicasets kuard –replicas=4

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

How can you scale replicas based on cpu usage ?

A

kubectl autoscale rs kuard –min=2 –max=5 –cpu-percent=80

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

How do you delete a replicaSet ?

A

kubectl delete rs kuard

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

How can you delete only the replicaSet and not the Pods ?

A

kubectl delete rs kuard –cascade=false

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