Add cleanup kubeadm backups under /etc/kubernetes/tmp (#13415)

* Add cleanup kubeadm backups under /etc/kubernetes/tmp

* Add kubeadm_backup_retention_count=0 to test
This commit is contained in:
wangsifei99
2026-09-10 07:42:46 +00:00
committed by GitHub
parent 44ab38baae
commit 35f900dd72
4 changed files with 59 additions and 0 deletions
@@ -246,6 +246,12 @@ auto_renew_certificates_systemd_calendar: "Mon *-*-1,2,3,4,5,6,7 03:00:00"
# we can opt out from the default behavior by setting kubeadm_upgrade_auto_cert_renewal to false
kubeadm_upgrade_auto_cert_renewal: true
# Number of kubeadm upgrade backups to retain in /etc/kubernetes/tmp/.
# Set to a negative value to retain all backups (default, no cleanup).
# Set to 0 to remove all backups after upgrade.
kubeadm_backup_retention_count: -1
# Add Subject Alternative Names to the Kubernetes apiserver certificates.
# Useful if you access the API from multiples load balancers, for instance.
supplementary_addresses_in_ssl_keys: []