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

 

posted @ 2021-10-18 22:39  xman888  阅读(21)  评论(0编辑  收藏  举报