- Getting Started with Kubernetes(Second Edition)
- Jonathan Baier
- 241字
- 2021-07-02 22:51:28
Replication controllers and replica sets
Replication controllers (RCs), as the name suggests, manage the number of nodes that a pod and included container images run on. They ensure that an instance of an image is being run with the specific number of copies.
As you start to operationalize your containers and pods, you'll need a way to roll out updates, scale the number of copies running (both up and down), or simply ensure that at least one instance of your stack is always running. RCs create a high-level mechanism to make sure that things are operating correctly across the entire application and cluster.
RCs are simply charged with ensuring that you have the desired scale for your application. You define the number of pod replicas you want running and give it a template for how to create new pods. Just like services, we will use selectors and labels to define a pod's membership in a replication controller.
Replica sets, are a new type, currently in Beta, that represent an improved version of replication controllers. Currently, the main difference consists of being able to use the new set-based label selectors as we will see in the following examples.
- 高效能辦公必修課:Word圖文處理
- PostgreSQL 11 Server Side Programming Quick Start Guide
- Hands-On Data Science with SQL Server 2017
- VMware Performance and Capacity Management(Second Edition)
- 工業機器人工程應用虛擬仿真教程:MotoSim EG-VRC
- 計算機圖形圖像處理:Photoshop CS3
- 21天學通C++
- CorelDRAW X4中文版平面設計50例
- Android游戲開發案例與關鍵技術
- JavaScript典型應用與最佳實踐
- Prometheus監控實戰
- Extending Ansible
- Building a BeagleBone Black Super Cluster
- 嵌入式操作系統原理及應用
- Machine Learning Algorithms(Second Edition)