What is a ReplicaSet
What’s the difference between a ReplicaSet and Replication Controller
How do I create a replication controller
What does template do in YAML config
Tells the ReplicationController how to create more pods with those specifications
How do I create a ReplicaSet
Why do we need a “selector” in the ReplicaSet YAML definition
Because ReplicaSets can manage pods not created as part of the ReplicaSet (e.g., pods created before the ReplicaSet but which fall under the same selector label)
Which labels have to match in the ReplicaSet YAML definition
select > matchLabels > tier
must match
template > metadata > labels > tier
How do I scale ReplicaSets
Does running $ k scale <etc> change the YAML definition file</etc>
No. You must also:
* update the yaml
* $ k delete replicaset <name>
* $ k replace 0f <updated></updated></name>