A cluster upgrade broke an operator because its CRD API version was removed. How do you recover?
AdvancedScenarioUpgrades, etcd, disaster recovery and incidents
Answer
Situation read → After the upgrade, custom resources cannot be served.
What I'd do →
- Check
kubectl get crd x -o yamlforstoredVersions - Re-install the operator version that supports the cluster
- Migrate stored objects to the new version (storage version migration)
- Update manifests to the served version
- Roll forward rather than back, since control plane downgrade is unsupported
Why → Stored versions must be migrated before an old version is dropped.
Interview tip → Control plane rollback is not supported.
More on Upgrades, etcd, disaster recovery and incidents
How do you back up etcd on a self-managed cluster?BeginnerHow do you restore a cluster from an etcd snapshot?Advancedetcd database space exceeded: `mvcc: database space exceeded`. What now?AdvancedWalk through a kubeadm minor version upgrade.AdvancedHow do you find deprecated or removed APIs before an upgrade?IntermediateWhat are the main control plane components and what does each do?Beginner