
上QQ阅读APP看书,第一时间看更新
ReplicaSet
A ReplicaSet can be used to launch and maintain a number of copies of the the same pod. For example, using the NGINX pod we discussed in the previous section, we could create a ReplicaSet that launches three copies of the same pod. Traffic could then be load-balanced between the three pods.
Our three pods can be spread across multiple hosts, meaning that, if a host wants to disappear for any reason, taking one of our pods out of service, it will automatically be replaced on a healthy node. You can also use a ReplicaSet to both automatically and manually add and remove pods.