Interview Prep/Kubernetes/Helm, operators and GitOps

What is an operator and when would you use one?

BeginnerScenarioHelm, operators and GitOps
Answer

Situation read → A team wants to run PostgreSQL on Kubernetes.

What I'd do →

  1. An operator is a controller plus CRDs that encodes operational knowledge
  2. Install the operator (for example CloudNativePG) with Helm
  3. Create a Cluster custom resource declaring instances and backups
  4. Check with kubectl get cluster and operator logs
  5. Weigh managed RDS versus self-run

Why → Operators automate day-2 tasks such as failover, backups and upgrades.

Interview tip → Say you evaluate operator maturity before trusting it.

All Kubernetes questions Roadmap: Platform engineering

More on Helm, operators and GitOps