kubernetes 标签 node-role.kubernetes.io/master 和 node-role.kubernetes.io/control-plane 有什么区别? [英] What is the difference between kubernetes labels node-role.kubernetes.io/master and node-role.kubernetes.io/control-plane?

查看:349
本文介绍了kubernetes 标签 node-role.kubernetes.io/master 和 node-role.kubernetes.io/control-plane 有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 kubernetes 的新手,我看到我节点的角色之一是 control-plane,master.有什么区别?主节点是运行 kube-apiserver 的节点吗?那么什么定义了控制平面节点?

I am newbie to kubernetes, I see one of my node's role is control-plane,master. What is the difference? is a master node is a node running kube-apiserver? Then what defined control-plane node?

我使用的是 kubectl 1.20.2(kubeadm 也是 1.20.2).

I am using kubectl 1.20.2(kubeadm also 1.20.2).

推荐答案

旧的 node-role.kubernetes.io/master 标签和污点键已被弃用,将被替换为 node-role.kubernetes.io/control-plane 相反,它们在过渡期间都是有效的.添加它们既可确保向后兼容性,又可支持使用较新术语的工具.

The old node-role.kubernetes.io/master label and taint key has been deprecated and will be replaced with node-role.kubernetes.io/control-plane instead, they are both valid during a transition period. Adding them both ensures backward compatibility while also supporting tools using the newer terminology.

更名的原因是 Kubernetes 项目正在摆脱被认为具有攻击性的措辞.一个新的工作组WG Naming 已经创建来跟踪这项工作,并且master 这个词被宣布为具有攻击性,推荐:master ->控制平面已被接受:

The reason for the name change is that The Kubernetes project is moving away from wording that is considered offensive. A new working group WG Naming has been created to track this work, and the word master was declared as offensive and the Recommendation: master -> control plane has been accepted:

在 Kubernetes 代码库中,术语master"经常用于引用 kubernetes 控制平面,作为一个整体或内部组件的某个子集.我们建议控制平面将组件集视为一个整体.我们推荐讨论单个组件时特定于上下文的替代方案或他们担任的角色.

Within the Kubernetes codebase, the term "master" is often used in reference to the kubernetes control plane, either as a whole or to some subset of the components within. We recommend control plane to refer to the set of components as a whole. We recommend context-specific alternatives when talking about individual components or the roles they serve.

作为 Kubernetes 生态系统的一部分,kubeadm 符合此建议,更多信息在 KEP-2067:将 kubeadm 重命名为master"标签和污点:

As part of the Kubernetes eco-system, kubeadm complies with this recommendation, more information in KEP-2067: Rename the kubeadm "master" label and taint:

Kubeadm 应用节点角色";标签到其控制平面节点.目前这个标签键是 node-role.kubernetes.io/master 并且它应该重命名为 node-role.kubernetes.io/control-plane.kubeadm也使用相同的节点角色"作为它适用的污点的关键控制平面节点.这个污点键也应该重命名为node-role.kubernetes.io/control-plane".

Kubeadm applies a "node-role" label to its control plane Nodes. Currently this label key is node-role.kubernetes.io/master and it should be renamed to node-role.kubernetes.io/control-plane. Kubeadm also uses the same "node-role" as key for a taint it applies on control plane Nodes. This taint key should also be renamed to "node-role.kubernetes.io/control-plane".

Kubernetes v1.20.0 发行说明中也提到了这一点

这篇关于kubernetes 标签 node-role.kubernetes.io/master 和 node-role.kubernetes.io/control-plane 有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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