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 a handler to restart the K3s Server when the service file changes #344

Merged

Conversation

peterklijn
Copy link
Contributor

Changes

Introduced a handler to restart the K3s service when a change to the {{ systemd_dir }}/k3s.service is detected.

I ran into the issue several times where I changed something in the template or extra_server_args and did not see my change reflected, and had to restart the service manually to see the change applied.
This PR solves that problem

Linked Issues

@peterklijn peterklijn requested a review from dereknola July 9, 2024 15:15
@dereknola dereknola merged commit 4f76954 into k3s-io:master Jul 15, 2024
2 checks passed
@peterklijn peterklijn deleted the restart-k3s-server-on-service-file-change branch July 15, 2024 17:33
andygodish pushed a commit to andygodish/k3s-ansible that referenced this pull request Aug 9, 2024
…k3s-io#344)

* Add a handler to restart the K3s Server when the service file changes

Signed-off-by: Peter Klijn <[email protected]>
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