Upgrades
Two upgrade paths, both dev first: Kubernetes versions (kubespray, ubernetes repo) and addon charts (ArgoCD, ubernetes-applications).
Pre-flight
Section titled “Pre-flight”-
Read the upstream release notes for breaking changes.
-
Do it on kestrel-dev first.
-
Announce the maintenance window to tenants through the RCS ops channel.
-
Take an etcd snapshot on a control-plane node (etcdctl needs the etcd client certs; see
documentation/Etcd.mdinubernetes):Terminal window sudo /usr/local/bin/etcdctl --endpoints=https://localhost:2379 \--cacert /etc/kubernetes/ssl/etcd/ca.crt \--cert /etc/kubernetes/ssl/etcd/peer.crt \--key /etc/kubernetes/ssl/etcd/peer.key \snapshot save /tmp/etcd-backup-$(date +%Y%m%d).dbCopy the snapshot off the node (for example
scpto the control host); a copy left in/tmpcan be lost in the upgrade it protects against. -
Cluster healthy:
kubectl get nodes,kubectl get pods -A | grep -v Running. -
All ArgoCD Applications
SyncedandHealthy.
Kubernetes version upgrade
Section titled “Kubernetes version upgrade”- Set
kube_versioninubernetes/clusters/kestrel/inventory/group_vars/k8s_cluster/k8s-cluster.yml. The file is shared by kestrel-dev and kestrel-prod, so make the change on the upgrade branch and run it against kestrel-dev first. - Follow the per-version notes in
ubernetes/documentation/upgrades/(for example1.30.md): submodule and Kubespray version, control-node play, then the upgrade. - Run
upgrade-cluster.ymlas described inubernetes/documentation/ClusterOperations.md. It upgrades the control plane, then cordons, drains, upgrades and uncordons workers one at a time. - Verify:
kubectl versionshows the new server version,kubectl get --raw /healthzreturnsok, andkubectl get nodes -o wideshows every nodeReadyon the new kubelet.
For a node handled outside kubespray (for example an OS re-image), one node at a time:
kubectl cordon <node>kubectl drain <node> --ignore-daemonsets --delete-emptydir-data# do the work, thenkubectl uncordon <node>Addon chart upgrades
Section titled “Addon chart upgrades”Chart versions live in the addon’s ApplicationSet under addons/ in ubernetes-applications (for example addons/cert-manager-appset.yaml), not in values files. Most carry two addonChartVersion values: the base generator (all non-prod clusters, including kestrel-dev) and the environment: prod override. Some carry extra version keys for sub-charts (cert-manager also has addonChartWebhookVersion and addonChartPolicyVersion).
- Read the chart changelog, especially for CRD changes.
- If CRDs change:
helm pull <repo>/<chart> --version <new> --untarandkubectl apply -f <chart>/crds/before merging. Helm does not upgrade CRDs. - Bump the base version, merge, and let kestrel-dev sync. Check the Application is
SyncedandHealthyand the pod logs are clean. - Bump the prod override in a second MR.
| Addon | Watch for |
|---|---|
| ArgoCD | RBAC policy changes, UI changes, ApplicationSet CRD updates |
| cert-manager | CRD version jumps, webhook certificate rotation, approver-policy compatibility |
| Capsule | Tenant CRD changes, webhook compatibility |
| capsule-argo-addon | Template changes: afterwards, kubectl get argotranslator tenant-onboarding must be Ready |
| Traefik | IngressRoute and Middleware CRD changes, config key renames |
Rollback
Section titled “Rollback”Kubernetes: the control plane can’t be downgraded in place. As a last resort: restore the etcd snapshot, re-provision the control plane at the previous version, and re-image workers (drain, re-image, uncordon). Prefer fixing forward.
Addon: revert the version-bump MR. If CRDs were updated and the old chart can’t use them, restore the old CRDs from the previous chart. ArgoCD syncs the revert on its next poll (about 3 minutes).
Post-upgrade verification
Section titled “Post-upgrade verification”kubectl get nodes -o wide: allReady, correct version.kubectl get pods -A | grep -v Running: nothing unexpected.- ArgoCD: all Applications
SyncedandHealthy. - Ask one or two active tenants to confirm their services work.