Kubernetes中的Replication Controller VS部署 [英] Replication Controller VS Deployment in Kubernetes

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

问题描述

我想知道复制控制器和Kubernetes(1.2)中的Deployment有什么区别.浏览入门文档( 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?

推荐答案

部署是比Replication Controllers更新的更高级别的概念.他们管理副本集的部署(也是一个较新的概念,但与复制控制器相当),并允许轻松更新副本集以及回滚到以前的部署的功能.

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 Dashboard has not yet been updated to support Deployments, and currently only supports Replication Controllers (see Deployments not visible in Kubernetes Dashboard).

仪表板现在支持部署.

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

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