- 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.
- 現(xiàn)代測(cè)控系統(tǒng)典型應(yīng)用實(shí)例
- Mastering Proxmox(Third Edition)
- 西門子S7-200 SMART PLC從入門到精通
- 計(jì)算機(jī)原理
- 快學(xué)Flash動(dòng)畫百例
- 大數(shù)據(jù)技術(shù)入門(第2版)
- 自主研拋機(jī)器人技術(shù)
- 變頻器、軟啟動(dòng)器及PLC實(shí)用技術(shù)260問
- Implementing Splunk 7(Third Edition)
- 運(yùn)動(dòng)控制系統(tǒng)
- 內(nèi)模控制及其應(yīng)用
- Dreamweaver CS6中文版多功能教材
- MPC5554/5553微處理器揭秘
- Natural Language Processing and Computational Linguistics
- Hadoop Beginner's Guide