Kubernetes 中的复制控制器 VS 部署 [英] Replication Controller VS Deployment in Kubernetes

查看:23
本文介绍了Kubernetes 中的复制控制器 VS 部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道 Kubernetes (1.2) 中的复制控制器和部署之间有什么区别.通过入门文档 (http://kubernetes.io/docs/hellonode/) 我已经创建了一个部署 - 但是它不会显示在网络用户界面上.

I wanted to know what is the difference between a Replication Controller and a Deployment within Kubernetes (1.2). Going through the getting started document (http://kubernetes.io/docs/hellonode/) I have created a deployment - but it doesn't show up on the web UI.

当我从 Web UI 创建应用程序时 - 它们被创建为复制控制器.但在功能上,它们看起来非常相似(它们都管理 Pod 并提供服务).

When I create apps from the web UI - they are created as replication controllers. Functionally though, they seem very similar (they both manage pods and have services).

那么 - 有什么区别,我应该什么时候使用它们?

So - what is the difference and when should I use each?

推荐答案

部署是比复制控制器更新和更高级别的概念.它们管理副本集的部署(也是一个较新的概念,但几乎等同于复制控制器),并允许轻松更新副本集以及回滚到先前部署的能力.

Deployments are a newer and higher level concept than Replication Controllers. They manage the deployment of Replica Sets (also a newer concept, but pretty much equivalent to Replication Controllers), and allow for easy updating of a Replica Set as well as the ability to roll back to a previous deployment.

以前这必须使用 kubectl rolling-update 来完成,它不是声明性的,也没有提供回滚功能.

Previously this would have to be done with kubectl rolling-update which was not declarative and did not provide the rollback features.

Kubernetes 仪表板尚未更新以支持部署,目前仅支持复制控制器(参见 部署在 Kubernetes 仪表板中不可见).

Kubernetes Dashboard has not yet been updated to support Deployments, and currently only supports Replication Controllers (see Deployments not visible in Kubernetes Dashboard).

仪表板现在支持部署.

这篇关于Kubernetes 中的复制控制器 VS 部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆