- 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.
- Hands-On Intelligent Agents with OpenAI Gym
- Linux Mint System Administrator’s Beginner's Guide
- 商戰數據挖掘:你需要了解的數據科學與分析思維
- 城市道路交通主動控制技術
- 計算機網絡技術基礎
- INSTANT Autodesk Revit 2013 Customization with .NET How-to
- 深度學習與目標檢測
- Mastering pfSense
- Working with Linux:Quick Hacks for the Command Line
- 計算機組成與操作系統
- Hands-On DevOps
- Cloudera Hadoop大數據平臺實戰指南
- RealFlow流體制作經典實例解析
- 納米集成電路制造工藝(第2版)
- Windows 7來了