ReplicationController contains the following information: the pod template, selector, and the number of replicas. Let's examine those further.
The pod template is basically a pod definition. It contains information about the containers, volumes, ports, and labels. Every pod created by this replication controller will be started using this pod template. The selector is used to determine which pods are governed by this ReplicationController. Finally, the number of replicas is the number of pods that we want to be running.
Kubernetes works in the following way: it monitors the current state of the cluster, and if that state is different from the desired state it takes actions so that the desired ...