Interview Prep/Kubernetes/Helm, operators and GitOps

A CRD was deleted and all custom resources disappeared. How do you prevent that?

AdvancedScenarioHelm, operators and GitOps
Answer

Situation read → Someone uninstalled an operator chart and the data objects vanished.

What I'd do →

  1. Explain that deleting a CRD deletes all its objects
  2. Helm does not manage CRDs in crds/ on upgrade or uninstall
  3. Install CRDs separately and protect with RBAC
  4. Back up with Velero or GitOps
  5. Add admission policy blocking CRD deletion

Why → CRD deletion is cascading and immediate.

Interview tip → Memorise this as a favourite gotcha.

All Kubernetes questions Roadmap: Platform engineering

More on Helm, operators and GitOps