commit 4636be19a498eca43f028c79cb2b652ad552d26f
Author: Chris Friesen <email address hidden>
Date: Thu Nov 23 15:04:29 2023 -0600
disable image gc when doing k8s upgrade
Static pods cannot use image pull secrets, so it's important that the
control plane images are not garbage-collected while we're doing a
Kubernetes upgrade otherwise the upgrade can fail.
Accordingly we want to disable garbage-collecting the images, then
pre-pull the new images, then do the actual K8s upgrade, then re-enable
image garbage collection.
Also included are a couple of fixes for places where we were using
subtly incorrect versions when retrieving the image list as part of
a multi-version upgrade.
TEST-PLAN:
PASS: Perform multi-version K8s upgrade on AIO-SX, ensure upgrade
passes and image garbage collection is disabled during the
upgrade and re-enabled when kubelet gets upgraded to the
final version.
PASS: Perform single-verison K8s upgrade on AIO-SX, ensure upgrade
passes and image garbage collection is disabled during the
upgrade and re-enabled when kubelet gets upgraded.
PASS: Perform single-version K8s upgrade on Standard lab, ensure
upgrade passes and image garbage collection is disabled on
each node during the upgrade and re-enabled when kubelet is
upgraded.
Closes-Bug: 2044492
Partial-Bug: 2044493
Change-Id: I358ae922e5c2c5c047806a1e6773b1d23a74cbd0
Signed-off-by: Chris Friesen <email address hidden>
Reviewed: https:/ /review. opendev. org/c/starlingx /stx-puppet/ +/901778 /opendev. org/starlingx/ stx-puppet/ commit/ 4636be19a498eca 43f028c79cb2b65 2ad552d26f
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 4636be19a498eca 43f028c79cb2b65 2ad552d26f
Author: Chris Friesen <email address hidden>
Date: Thu Nov 23 15:04:29 2023 -0600
disable image gc when doing k8s upgrade
Static pods cannot use image pull secrets, so it's important that the
control plane images are not garbage-collected while we're doing a
Kubernetes upgrade otherwise the upgrade can fail.
Accordingly we want to disable garbage-collecting the images, then
pre-pull the new images, then do the actual K8s upgrade, then re-enable
image garbage collection.
Also included are a couple of fixes for places where we were using
subtly incorrect versions when retrieving the image list as part of
a multi-version upgrade.
TEST-PLAN:
PASS: Perform multi-version K8s upgrade on AIO-SX, ensure upgrade
passes and image garbage collection is disabled during the
upgrade and re-enabled when kubelet gets upgraded to the
final version.
PASS: Perform single-verison K8s upgrade on AIO-SX, ensure upgrade
passes and image garbage collection is disabled during the
upgrade and re-enabled when kubelet gets upgraded.
PASS: Perform single-version K8s upgrade on Standard lab, ensure
upgrade passes and image garbage collection is disabled on
each node during the upgrade and re-enabled when kubelet is
upgraded.
Closes-Bug: 2044492
Partial-Bug: 2044493
Change-Id: I358ae922e5c2c5 c047806a1e6773b 1d23a74cbd0
Signed-off-by: Chris Friesen <email address hidden>