Merge ~toabctl/snap-kubelet:master-explicit-install-mode into snap-kubelet:master

Proposed by Thomas Bechtold
Status: Merged
Merged at revision: c5a616a2d8cde90ec459057d56866dcb2adaae0c
Proposed branch: ~toabctl/snap-kubelet:master-explicit-install-mode
Merge into: snap-kubelet:master
Diff against target: 11 lines (+1/-0)
1 file modified
snapcraft.yaml.in (+1/-0)
Reviewer Review Type Date Requested Status
George Kraft (community) Approve
Review via email: mp+442321@code.launchpad.net

Commit message

Explicitly set install-mode for kubelet daemon to enabled

To post a comment you must log in.
Revision history for this message
George Kraft (cynerva) wrote :

Nice, I wasn't aware of this option. I actually think we would benefit from disabling this in the regular kubelet snap too. It would clean up the noisy logs in fresh deployments.

I'd like to test with `install-mode: disable` first to see if we can make that change safely.

Revision history for this message
George Kraft (cynerva) wrote :

I should be able to get to testing this next week. If it's needed more urgently, let me know.

Revision history for this message
Thomas Bechtold (toabctl) wrote :

We have a EKS bug that might be fixed with that. So if you could testing early next week, that would be great!

Revision history for this message
Robby Pocase (rpocase) wrote :

Just going through my TODOs - gentle bump on this post sprint. Not a major rush, but we hope to land the changes to our snap this pulse. If there is anything we can do to offload just let me know :).

Revision history for this message
George Kraft (cynerva) wrote :

I tested `install-mode: disable` today and found that it does cause problems for Charmed Kubernetes. The charms start the kubelet service, but they do not enable the service to start on boot. Given that this change would eventually make its way out to existing stable channels (1.27/stable, 1.26/stable, etc), we can't safely make the change until we revise our snap branching and release process to allow for a more controlled release.

The originally proposed change to add `install-mode: enable` for easier text substitution when building the kubelet-eks snap should be fine however. If you want to go that route then I will happily merge it. Just be careful in your bootstrap script to make sure you enable the service when you start it, maybe with `snap start --enable`.

Revision history for this message
George Kraft (cynerva) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/snapcraft.yaml.in b/snapcraft.yaml.in
2index 78894ec..a9ceb13 100644
3--- a/snapcraft.yaml.in
4+++ b/snapcraft.yaml.in
5@@ -19,6 +19,7 @@ apps:
6 command: wrappers/run-with-config-args wrappers/kubelet-wrapper
7 daemon: simple
8 restart-condition: always # needed for Dynamic Kubelet Config support
9+ install-mode: enable
10 kubelet:
11 command: kubelet
12

Subscribers

People subscribed via source and target branches