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 →
- An operator is a controller plus CRDs that encodes operational knowledge
- Install the operator (for example CloudNativePG) with Helm
- Create a
Clustercustom resource declaring instances and backups - Check with
kubectl get clusterand operator logs - 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.
More on Helm, operators and GitOps
A `helm upgrade` failed halfway. How do you see state and recover?BeginnerHelm says `cannot re-use a name that is still in use` or `another operation is in progress`. What now?IntermediateHow do you review what a Helm upgrade will change before running it?IntermediateWhere do you keep chart values for multiple environments?BeginnerWhat does `helm template` do and how is it different from `helm install`?BeginnerA Helm chart upgrade changed an immutable field and failed. How do you proceed?Advanced