Dynamic taints #143
-
Hi, Really complete role and easy to use ! 👍 I can't add some taint to node after the playbook has been run one time. On first use :
when run the playbook the first time node are created successfully with correct taint. And then the vars are changed to :
When we run the playbook again, the second taint isn't added. Is it normal ? Or do we have to add some tasks to add / remove the taints dynamically ? Best Regards. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
No, this is not normal and not what I'd expect This task writes the config file (which contains the taint): https://github.com/PyratLabs/ansible-role-k3s/blob/main/tasks/build/install-k3s-node.yml#L20-L28 When the file changes, this notifies the handlers to restart k3s. Handlers are defined here: https://github.com/PyratLabs/ansible-role-k3s/blob/main/handlers/main.yml#L9-L21 Without further information, I can only assume that either:
For fixing these:
|
Beta Was this translation helpful? Give feedback.
No, this is not normal and not what I'd expect
This task writes the config file (which contains the taint): https://github.com/PyratLabs/ansible-role-k3s/blob/main/tasks/build/install-k3s-node.yml#L20-L28
When the file changes, this notifies the handlers to restart k3s.
Handlers are defined here: https://github.com/PyratLabs/ansible-role-k3s/blob/main/handlers/main.yml#L9-L21
Without further information, I can only assume that either:
k3s_server
is being over-written in…