k8s - ReplicationController and ReplicaSet
通过ReplicationController来运行pod
This controller ensures that there are a specific number of Pod replicas running at any time and, if a Pod does crash, the ReplicationController restarts it. This is the original form of replication in Kubernetes and, while it’s being replaced by ReplicaSets, it is still in wide use.
When this controller is created, it will create Pods based on the number of replicas.
通过replicaSet来运行pod
扩容replicaset
kubectl scale --replicas=10 replicaset nginx-pod-rs