Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make k3s_server role idempotent #347

Merged

Conversation

peterklijn
Copy link
Contributor

Changes

Introduce copy of k3s.yaml file to detect changes and skip control node changes.
It's a bit of a workaround, but I consider it a pragmatic solution to prevent Ansible from always reporting 4 changes, the k3s.yaml file is different from the ~/.kube/config.new file due to the changes the next 3 tasks make to it.

Before
Screenshot 2024-07-13 at 15 34 03

After
Screenshot 2024-07-13 at 15 34 14

(192.168.64.9 is the first server)

Linked Issues

@dereknola dereknola merged commit e53d895 into k3s-io:master Jul 15, 2024
2 checks passed
@peterklijn peterklijn deleted the idempotent-kubeconfig-for-control-node branch July 15, 2024 20:55
andygodish pushed a commit to andygodish/k3s-ansible that referenced this pull request Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants