[英]Pods assigned to node with no role
I am currently doing some scenarios on Katacoda and I am curious about the node roles.我目前正在 Katacoda 上做一些场景,我对节点角色很好奇。
My cluster has 2 nodes and one has the role Master and the other has no role.我的集群有 2 个节点,一个具有 Master 角色,另一个没有角色。
NAME STATUS ROLES AGE VERSION
controlplane Ready master 5m11s v1.18.0
node01 Ready <none> 4m40s v1.18.0
Now when I look at the pods in my cluster, it seems like all three pods are assigned to node01现在,当我查看集群中的 pod 时,似乎所有三个 pod 都分配给了 node01
kubectl get pods -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
random-logger-7687d48b59-jftl9 1/1 Running 0 26s 10.244.1.5 node01 <none> <none>
random-logger-7687d48b59-mwz4h 1/1 Running 0 26s 10.244.1.4 node01 <none> <none>
random-logger-7687d48b59-vgbc8 1/1 Running 0 117s 10.244.1.3 node01 <none> <none>
My understanding is that the scheduler puts pods on notes that are assigned the worker role, so why are they being scheduled on a node with no role?我的理解是调度程序将 pod 放在分配了 worker 角色的注释上,那么为什么将它们调度在没有角色的节点上呢? Is a node with no role in the cluster assumed to be a worker node?
集群中没有角色的节点是否假定为工作节点?
use kubectl describe nodes my-node
to see the details of the node使用
kubectl describe nodes my-node
查看节点的详细信息
A node role
is just a label with the format node-role.kubernetes.io/节点
role
只是一个 label,格式为 node-role.kubernetes.io/
You can add this yourself with 'kubectl label'您可以使用“kubectl label”自行添加
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.