chore(bootstrap): upgrade kubespray to release-2.28 and kubernetes to v1.32.13

- Bump Kubespray baseline to release-2.28 (last release supporting Ubuntu 20.04)
- Upgrade Kubernetes control plane and node to v1.32.13
- Configure single-node cluster settings (drain_nodes: false)
- Add patch for Kubespray v1beta4 kubeadm preflight error handling
- Update init.sh, AGENTS.md, and README.md with two-phase upgrade instructions
This commit is contained in:
Moritz Graf
2026-09-19 22:57:19 +02:00
parent c9e21c082d
commit 87649e6e22
6 changed files with 96 additions and 10 deletions
+9 -4
View File
@@ -6,14 +6,19 @@
echo "######################################################################################"
echo "## Reinit repository"
rm -rf kubespray
VERSION="release-2.27"
VERSION="release-2.28"
git clone --branch $VERSION https://github.com/kubernetes-sigs/kubespray.git
if [ -d patches ]; then
for p in patches/*.patch; do
[ -f "$p" ] && (echo "## Applying patch $p" && git -C kubespray apply "../$p")
done
fi
echo "######################################################################################"
echo "## Activating pyenv venv"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
pyenv virtualenv 3.10.8 infrapuzzle-bootstrap
pyenv virtualenvs --bare | grep -q "^infrapuzzle-bootstrap$" || pyenv virtualenv 3.10.8 infrapuzzle-bootstrap
pyenv activate infrapuzzle-bootstrap
python -m pip install -r kubespray/requirements.txt
@@ -46,9 +51,9 @@ echo "## * syncing config in kubespray dir"
rsync -a ./inventory/ ./kubespray/inventory/
echo "## * changing into kubespray dir"
cd kubespray
echo "## * execute the following command to force new settings"
echo "## * Step 1: Reconcile Kubespray baseline (keep current k8s version):"
echo "ansible-playbook -i inventory/prod/inventory.ini cluster.yml"
echo "## * execute the following command to force new settings with forced cluster upgrade"
echo "## * Step 2: Once verified, bump kube_version in inventory/prod/group_vars/k8s_cluster/k8s-cluster.yml and run:"
echo "ansible-playbook -i inventory/prod/inventory.ini -e upgrade_cluster_setup=true cluster.yml"
# cp -r kubespray/inventory/sample kubespray/inventory/prod