Skip to content

Where does node role "worker" get set? #792

Answered by onedr0p
adampetrovic asked this question in Q&A
Discussion options

You must be logged in to vote

I've converted this into a discussion...

This is to be set manually after the cluster is deployed. I've tried many times to have k3s set this label during bootstrap using the Ansible k3s role however there's some weird bug that prevents the k3s service from starting if that config is set.

It's been about a year since I last tried so feel free to try this again and open a PR if you discover it works.


Edit:

https://github.com/onedr0p/flux-cluster-template/blob/main/ansible/inventory/group_vars/worker/k3s.yml

---
# https://rancher.com/docs/k3s/latest/en/installation/install-options/agent-config/
# https://github.com/PyratLabs/ansible-role-k3s

k3s_control_node: false
k3s_agent:
  node-ip: "{…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by adampetrovic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #791 on June 15, 2023 12:04.