Interview Prep/Kubernetes/Helm, operators and GitOps

How do you write a minimal controller or choose between operator frameworks?

AdvancedScenarioHelm, operators and GitOps
Answer

Situation read → The team needs a custom operator for an internal resource.

What I'd do →

  1. Consider if a Helm chart or a CronJob is enough first
  2. Use Kubebuilder or Operator SDK (Go) for full control, or Kopf (Python) for simple needs
  3. Define the CRD schema with validation and a status subresource
  4. Make reconciliation idempotent
  5. Add finalizers for cleanup, metrics and leader election

Why → Reconcile loops must be level-triggered and idempotent.

Interview tip → Mention status conditions.

All Kubernetes questions Roadmap: Platform engineering

More on Helm, operators and GitOps