Closed gbyczyns closed 2 years ago
I have a cluster that consist of master nodes only:
hosts.ini
[master] server1.mydomain.com server2.mydomain.com server3.mydomain.com [node] [k3s_cluster:children] master node
Node taints shouldn't be enabled if there are master nodes only. All the master nodes should be able to accept workload.
Taints are added to all master nodes, and since there are no regular nodes, it's not possible to run any workload on the cluster.
$ kubectl get nodes -o custom-columns=NAME:.metadata.name,TAINTS:.spec.taints --no-headers server1.mydomain.com [map[effect:NoExecute key:CriticalAddonsOnly value:true]] server2.mydomain.com [map[effect:NoExecute key:CriticalAddonsOnly value:true]] server3.mydomain.com [map[effect:NoExecute key:CriticalAddonsOnly value:true]]
The reason lies in one of the recent commits (4acbe91b6c3a25a8f693df7c11789e1947842425) that added this variable:
4acbe91b6c3a25a8f693df7c11789e1947842425
k3s_single_node: "{{ 'true' if groups['k3s_cluster'] | length == 1 else 'false' }}"
I suppose that will be fixed with #95 - do you agree?
You're right, this issue can be closed. Thank you!
Context
I have a cluster that consist of master nodes only:
hosts.ini
Expected Behavior
Node taints shouldn't be enabled if there are master nodes only. All the master nodes should be able to accept workload.
Current Behavior
Taints are added to all master nodes, and since there are no regular nodes, it's not possible to run any workload on the cluster.
The reason lies in one of the recent commits (
4acbe91b6c3a25a8f693df7c11789e1947842425
) that added this variable: