k3s-ansible
k3s-ansible copied to clipboard
Node got no role
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
Is there any configuration missing to assign the node role?
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.
This is expected behavior of "agent" nodes. only the Server nodes get control-plane roles.