Kubernetes会在主节点上运行Docker容器吗? [英] Will (can) Kubernetes run Docker containers on the master node(s)?

查看:129
本文介绍了Kubernetes会在主节点上运行Docker容器吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Kubernetes具有主节点和仆从节点.

Kubernetes has master and minion nodes.

Kubernetes是否可以在主节点上运行指定的Docker容器?

Will (can) Kubernetes run specified Docker containers on the master node(s)?

我想说的另一种说法是:主人也可以是奴才吗?

I guess another way of saying it is: can a master also be a minion?

感谢您的帮助.

推荐答案

2015年4月6日更新:截至

Update 2015-08-06: As of PR #12349 (available in 1.0.3 and will be available in 1.1 when it ships), the master node is now one of the available nodes in the cluster and you can schedule pods onto it just like any other node in the cluster.

只能将Docker容器调度到运行kubelet(您称为小兵)的kubernetes节点上.没有什么可以阻止您创建由同一台机器(物理机或虚拟机)运行kubernetes主软件和kubelet的集群的,但是当前的集群配置脚本将主服务器分离到了不同的机器上.

A docker container can only be scheduled onto a kubernetes node running a kubelet (what you refer to as a minion). There is nothing preventing you from creating a cluster where the same machine (physical or virtual) runs both the kubernetes master software and a kubelet, but the current cluster provisioning scripts separate the master onto a distinct machine.

当实施问题#6087 时,情况将发生重大变化.

This is going to change significantly when Issue #6087 is implemented.

这篇关于Kubernetes会在主节点上运行Docker容器吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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