k3s-ansible icon indicating copy to clipboard operation
k3s-ansible copied to clipboard

Node got no role

Open MehrCurry opened this issue 3 years ago • 2 comments

After installing on two RPI 4 8GB the Node got no roles

+ kubectl get nodes -o wide
NAME          STATUS   ROLES                  AGE   VERSION        INTERNAL-IP      EXTERNAL-IP   OS-IMAGE                         KERNEL-VERSION   CONTAINER-RUNTIME
k3s-node-02   Ready    control-plane,master   15m   v1.21.3+k3s1   192.168.187.57   <none>        Raspbian GNU/Linux 10 (buster)   5.10.52-v7l+     containerd://1.4.8-k3s1
k3s-node-01   Ready    <none>                 14m   v1.21.3+k3s1   192.168.187.58   <none>        Raspbian GNU/Linux 10 (buster)   5.10.52-v7l+     containerd://1.4.8-k3s1

inventory.ini

[master]
192.168.187.57

[node]
192.168.187.58

[k3s_cluster:children]
master
node

MehrCurry avatar Aug 18 '21 16:08 MehrCurry

Is there any configuration missing to assign the node role?

MehrCurry avatar Aug 19 '21 08:08 MehrCurry

I believe what you are seeing is correct behaviour. A k3s agent has no roles.

In k3s by default all nodes can run workload including masters unless tainted, however only nodes with roles will take part in managing the cluster.

simonjcarr avatar Oct 15 '22 22:10 simonjcarr

This is expected behavior of "agent" nodes. only the Server nodes get control-plane roles.

dereknola avatar Nov 09 '23 21:11 dereknola