Interview Prep/Kubernetes/Upgrades, etcd, disaster recovery and incidents

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 →

  1. Check kubectl get crd x -o yaml for storedVersions
  2. Re-install the operator version that supports the cluster
  3. Migrate stored objects to the new version (storage version migration)
  4. Update manifests to the served version
  5. 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.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Upgrades, etcd, disaster recovery and incidents