snap-kubelet:v1.30.0

Last commit made on 2024-04-18
Get this branch:
git clone -b v1.30.0 https://git.launchpad.net/snap-kubelet
Members of Kubernetes Jenkaas Admins can upload to this branch. Log in for directions.

Branch merges

Branch information

Name:
v1.30.0
Repository:
lp:snap-kubelet

Recent commits

b342854... by cdk bot

Creating branch v1.30.0

c25c56f... by George Kraft

Don't restart kubelet(-eks) service during configure hook

6c89724... by George Kraft

Make service config and start handling more robust

The goal is to address problems that have been seen in starts of the kubelet
service:

1. The service can start prior to being configured, leading it to start in
   standalone mode, which usually crashes. This can happen on new installs and
   after the snap refreshes.
2. If the service crashes quickly and repeatedly, it can hit the systemd start
   rate limit, at which point it will *never* start again without user
   intervention.

These are addressed by the following changes:

1. When trying to start kubelet, if the args file doesn't exist, exit without
   starting kubelet. When running the configure hook, write the args file
   atomically, and restart the service after it is written.
2. Set restart-delay=4s to reduce the rate of restarts and prevent us from
   hitting the default systemd start rate limit (burst 5 interval 10)

c5a616a... by Thomas Bechtold

Explicitly set install-mode for kubelet daemon to enabled

"enabled" is already the default[0] so this change is a noop.
But kubelet-eks wants to set the install-mode to "disable" so having
it here makes the text replacement in Jenkins[1] easier.

[0] https://snapcraft.io/docs/services-and-daemons
[1]
https://github.com/charmed-kubernetes/jenkins/blob/main/jobs/build-snaps/build-release-eks-snaps.groovy

8dbfb19... by George Kraft

Fix failed builds on core18, fix gimme errors

79bdddb... by George Kraft

Update to support core20

3f3f5b6... by George Kraft

Fix building wrong k8s version in dirty env

e3cc13f... by George Kraft

go get fails with k8s 1.21, use git clone instead

4f9cb30... by George Kraft

Additional fix for generate-configure-hook on k8s 1.19

96d1ee8... by George Kraft

Fix generate-configure-hook for k8s 1.19