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

Add token to agents on existing clusters #360

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

james-otten
Copy link
Contributor

Changes

#356 introduced a subtle issue for existing clusters where the token is removed from the service unit but not added to the .env file unless a version update happens at the same time. By moving the task Add the token for joining the cluster to the environment outside of the block: it makes sure it is executed in all cases (a very subtle spacing issue).

Issue occurring: https://github.com/nycmeshnet/k8s-infra/actions/runs/10756493721/job/29829415464#step:14:569
Testing fix: https://github.com/nycmeshnet/k8s-infra/actions/runs/10805984455/job/29973976530#step:14:570 - I confirmed the value is now in the .env file and our nodes remained active.

Thank you for maintaining k3s-ansible, it is nice and easy to use. Also, #356 is good for security, thank you for this.

@james-otten james-otten force-pushed the james/token_for_existing_agent branch from 26ea2ff to 05e764f Compare September 11, 2024 06:42
@dereknola dereknola merged commit bc03d1c into k3s-io:master Sep 12, 2024
2 checks passed
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.

3 participants