官术网_书友最值得收藏!

  • DevOps with Kubernetes
  • Hideto Saito Hui Chuan Chloe Lee Cheng Yang Wu
  • 309字
  • 2021-07-02 13:41:42

Configuration management

Configuration management tools help to configure OS settings, such as creating a user or group, or installing system libraries. It also acts as an orchestrator, which keeps multiple managed servers consistent with our desired state. 

It's not a programming script, because a script is not necessarily idempotent. This means that if we execute a script twice, we might get an error, such as if we are trying to create the same user twice. Configuration management tools, however, watch the state, so if a user is created already, a configuration management tool wouldn't do anything. If we delete a user accidentally or even intentionally, the configuration management tool would create the user again.

Configuration management tools also support the deployment or installation of software to the server. We simply describe what kind of software package we need to install, then the configuration management tool will trigger the appropriate command to install the software package accordingly.

As well as this, if you tell a configuration management tool to stop your application, to download and replace it with a new package (if applicable), and restart the application, it'll always be up-to-date with the latest software version. Via the configuration management tool, you can also perform blue-green deployments easily.

Blue-green deployment is a technique that prepares two sets of an application stack. Only one environment (for example, the blue one) services the production. Then, when you need to deploy a new version of the application, you can deploy it to the other side (for example, the green one), then perform the final test. If it works fine, you can change the load balancer or router setting to switch the network flow from blue to green. Then, the green side becomes the production environment, while the blue side becomes dormant and waits for the next version to be deployed.
主站蜘蛛池模板: 台中县| 大余县| 尖扎县| 建宁县| 连江县| 侯马市| 克拉玛依市| 富阳市| 车致| 扶绥县| 舒城县| 乌兰浩特市| 嘉兴市| 平凉市| 连平县| 五河县| 麻栗坡县| 广水市| 且末县| 越西县| 德江县| 林甸县| 大埔县| 图木舒克市| 新昌县| 崇文区| 河南省| 永顺县| 新干县| 丹巴县| 呈贡县| 金塔县| 宾川县| 贵阳市| 淅川县| 晴隆县| 石渠县| 黔西县| 班玛县| 巴楚县| 武义县|