Skip to main content

Posts

Showing posts with the label replicaset

Kubernetes: 2. Replica Set

Replication Controller Replication Controller is a Kubernetes Controller Runs multiple instances of kubernetes pods in a cluster thus providing high availability Replication Controller and Replica Set have same functionality but they are different Replication Controller is the older way to scale the pods Selector labels is optional, if you dont specify then " .spec.template.metadata.labels " is defaulted Replica Set Replica Set is also Kubernetes Controller Replica Set are for having the desired number of Pods running, same as Replication Controller Kubernetes keeps a watch of the number of pods that should be running at any time and automatically creates/deletes based on the pods running What differentiates a Replica Set from Replication Controller is selector with set-based label requirements. Set based allow filtering keys according to a set of values. Three kinds of operators are supported: in notin exists Updating Replica Set Use kubectl edit rs <rs-name> and modi...