Most Asked Kubernetes Operator Questions: Freshers (2027)

36 most asked Kubernetes Operator interview questions for freshers: CRDs, controllers, reconcile loops, Operator SDK, Kubebuilder and OLM.

Sep 27, 2025 - 12:49
Nov 10, 2026 - 23:05
 0  65
TOPICInterview Q & APractical guide
Most Asked Kubernetes Operator Questions: Freshers (2027)

The most asked Kubernetes Operator interview questions for freshers cover four basics: what a custom resource and a CRD are, how a controller's reconcile loop works, what makes an Operator different from a Helm chart, and which tools (Operator SDK, Kubebuilder, OLM) you would use to build and install one. This page answers 36 of those questions in plain language, grouped by level, with a short scenario section at the end.

It is written for freshers and people moving from Kubernetes administration into platform work. If you already build Operators in Go, our Kubernetes Operator interview preparation plan and the advanced Operator questions go further. Background on the control plane is in our guide to Kubernetes architecture components. Facts were checked against kubernetes.io, the Kubebuilder book and the Operator SDK docs in November 2026.

Key takeaways

  • Kubernetes defines Operators as software extensions that use custom resources to manage applications, following the control loop principle.
  • A CRD adds a new resource type to the API. A controller watches that type and works to make the real state match the spec.
  • Reconcile logic must be idempotent: running it twice with the same input should give the same result.
  • Operator SDK (part of the Operator Framework) supports Go, Ansible and Helm based Operators. Kubebuilder is the Kubernetes SIG project for Go Operators. Current releases are Operator SDK v1.42.3 and Kubebuilder v4.16.0.
  • The Operator Framework describes five capability levels, from Basic Install to Auto Pilot.
  • Freshers are often asked to read a small CR YAML and explain what the Operator will do with it.

Core terms in one table

TermMeaningExample
Custom resource (CR)An object of a type you added to the APIA PostgresCluster named orders-db
CRDThe definition that registers the new type and its schemapostgresclusters.db.example.com
ControllerA loop that watches objects and acts on differencesThe Deployment controller in kube-controller-manager
OperatorA controller plus CRDs that encode app-specific operational knowledgeAn Operator that creates, backs up and upgrades a database
OLMOperator Lifecycle Manager, installs and upgrades Operatorsoperator-sdk olm install in a test cluster

Kubernetes Operator questions for freshers

1. What is a Kubernetes Operator?

The Kubernetes docs call Operators software extensions that use custom resources to manage applications and their components. An Operator puts the knowledge of a human operator, such as how to deploy, back up and upgrade a database, into code that runs inside the cluster and reacts to changes.

2. What problem do Operators solve?

Built-in objects such as Deployments know how to run pods, but not how to fail over a database, rotate certificates in an app-specific way or run schema migrations before an upgrade. Operators automate those repeatable, application-specific tasks without changing Kubernetes' own code.

3. What is a custom resource?

An object of a resource type that is not built into Kubernetes. Once a CRD registers the type, you can create, list and delete these objects with kubectl just like Pods, and they are stored in etcd through the API server.

4. What is a CustomResourceDefinition (CRD)?

A CRD is an API object that tells the API server about a new resource type: its group, version, kind, scope (namespaced or cluster) and an OpenAPI v3 schema for validation. Creating a CRD does not add any behaviour. The behaviour comes from a controller.

apiVersion: db.example.com/v1
kind: PostgresCluster
metadata:
  name: orders-db
spec:
  replicas: 3
  version: "16"
  backupSchedule: "0 2 * * *"

5. What is a controller?

A control loop that watches the state of the cluster and makes changes to move the current state toward the desired state. The kube-controller-manager runs built-in controllers, such as the ReplicaSet controller. An Operator runs its own controller for its custom resources.

6. What does "desired state versus actual state" mean?

The desired state is what you declared in spec. The actual state is what exists, usually reported in status. A controller compares the two and acts on the difference, for example creating a missing pod.

7. What is the reconcile loop?

The function the controller runs every time something relevant changes. It reads the custom resource, checks related objects, creates or updates what is missing, writes status, and returns. If the work is not finished, it asks to run again later.

8. Why must reconcile logic be idempotent?

Reconcile can run many times for the same object: after restarts, resyncs or unrelated events. If it creates a new backup Job every time it runs, you get duplicates. Idempotent logic checks what exists and only changes what differs.

9. What is the difference between spec and status?

spec is written by the user and states intent. status is written by the controller and reports what it observed, such as ready replicas or conditions. Users should not edit status, and controllers usually update it through the status subresource.

10. How is an Operator different from a Helm chart?

Helm renders templates and installs or upgrades a release when you run it. After that, Helm does nothing until you run it again. An Operator runs all the time, watches resources and reacts to failures, scaling or configuration changes. Operator SDK can even wrap a Helm chart into a Helm-based Operator.

11. Name some tools used to write Operators.

The Kubernetes docs list Kubebuilder, the Operator Framework (Operator SDK), Kopf for Python, Java Operator SDK, kube-rs for Rust, KubeOps for .NET, Metacontroller and shell-operator, among others. In interviews, Go with Kubebuilder or Operator SDK is the most common answer.

12. What languages does Operator SDK support?

Operator SDK supports Go, Ansible and Helm based Operators. Go gives full control. Ansible suits teams with existing playbooks. Helm suits teams that already have a chart and want basic install and upgrade automation.

Questions for 1 to 3 years of Kubernetes experience

13. What are the five Operator capability levels?

The Operator Framework defines Level 1 Basic Install, Level 2 Seamless Upgrades, Level 3 Full Lifecycle (backup, restore, failure recovery), Level 4 Deep Insights (metrics, alerts, events) and Level 5 Auto Pilot (auto-scaling, auto-healing, auto-tuning, abnormality detection).

14. What is Operator Lifecycle Manager?

OLM installs, updates and manages Operators and their dependencies in a cluster. Operators are packaged as bundles with a ClusterServiceVersion and CRDs. Operator SDK has operator-sdk olm install, operator-sdk run bundle and operator-sdk run bundle-upgrade for testing.

15. What is OperatorHub.io?

A public catalogue of community Operators that can be installed with OLM. It is a good place to see real Operators and their capability level before deciding whether to build your own.

16. What is an owner reference and why does it matter?

An owner reference in a child object's metadata points to its parent, such as a StatefulSet owned by a PostgresCluster. Kubernetes garbage collection deletes owned objects when the owner is deleted, and controllers can watch owned objects to reconcile the parent when a child changes.

17. What is a finalizer?

A key in metadata.finalizers that blocks deletion until the controller removes it. When you delete an object with a finalizer, the API server sets a deletion timestamp instead of removing it. The controller runs cleanup, such as deleting an external cloud resource, then removes the finalizer.

18. What is the status subresource?

When enabled on a CRD, /status becomes a separate endpoint. Updates to the main object ignore status changes, and status updates ignore spec changes. This stops users and controllers from overwriting each other's fields.

19. What RBAC does an Operator need?

A ServiceAccount with a Role or ClusterRole that allows the verbs it uses on its own resources, their status and finalizers subresources, and on any built-in resources it manages. Kubebuilder generates these rules from +kubebuilder:rbac markers in the code.

20. What is the difference between namespace-scoped and cluster-scoped Operators?

A namespace-scoped Operator watches one or a few namespaces and needs only Roles there. A cluster-scoped Operator watches all namespaces and needs a ClusterRole. Cluster scope is simpler to run but grants wider permissions.

21. What are CRD versions and why do they matter?

A CRD can serve several versions, such as v1alpha1 and v1, with one marked as the storage version. When the schema changes in an incompatible way, a conversion webhook translates between versions so old objects still work.

22. What is leader election in an Operator?

If you run more than one replica of the Operator for availability, only one should reconcile at a time. Leader election uses a Lease object so one replica holds the lock and others wait. Kubebuilder projects include a flag to enable it.

23. How do you see what an Operator is doing?

Read the Operator pod logs, check the custom resource's status.conditions, and look at events with kubectl describe. Many Operators also expose Prometheus metrics, which is part of capability Level 4.

24. What is a webhook in the context of Operators?

Admission webhooks run when objects are created or updated. A validating webhook rejects bad custom resources. A mutating webhook sets defaults. Conversion webhooks handle CRD version changes. Both Kubebuilder and Operator SDK can scaffold them.

Questions that test deeper understanding

25. When should you not build an Operator?

When a Deployment, a Helm chart or an existing Operator already does the job. An Operator is code you must maintain, test and secure. Build one when you need ongoing automation, such as failover or backups, that static manifests cannot provide.

26. Why are Operators popular for databases?

Databases need ordered startup, replication setup, backups, restores and careful upgrades. The Kubernetes docs list backups, upgrades with schema changes and leader election as typical tasks an Operator can automate.

27. How does an Operator react to a manual change to a child object?

If the controller watches the child (for example with an owner reference), a change triggers reconcile on the parent. The controller sees the drift and changes the child back to match the custom resource spec.

28. What happens if the Operator pod is down?

Existing workloads keep running because Kubernetes built-in controllers still manage pods. New or changed custom resources are not acted on until the Operator returns. On restart, it reconciles every object it watches.

29. What is level-based versus edge-based logic?

Edge-based logic reacts to the specific event ("a pod was deleted"). Level-based logic looks at the whole current state each time ("there should be three pods, there are two"). Kubernetes controllers are level-based, which makes them recover from missed events.

30. What do conditions in status look like?

A list of entries with type, status (True, False, Unknown), reason, message and lastTransitionTime, such as Ready=True. Tools and humans can read them without understanding the whole object.

31. How do you install an Operator without OLM?

Apply its CRDs, RBAC and Deployment manifests with kubectl apply, Kustomize or a Helm chart that the project provides. Kubebuilder projects run make deploy against the current kubeconfig.

32. How do CRD schemas protect the cluster?

The OpenAPI v3 schema validates fields when objects are created, so a string in an integer field or a missing required field is rejected by the API server before the controller sees it.

Scenario-based questions for freshers

33. You applied a custom resource and nothing happened. What do you check?

Confirm the CRD exists with kubectl get crd, confirm the Operator pod is running, read its logs for RBAC "forbidden" errors, and check whether the Operator watches the namespace you used.

34. Deleting a custom resource hangs forever.

A finalizer is probably still set because the Operator is down or its cleanup keeps failing. Fix the Operator or the external dependency first. Removing the finalizer by hand skips cleanup and can leave orphaned resources, so do it only when you understand what will be left behind.

35. Someone scaled the Operator's StatefulSet by hand and it keeps reverting.

That is expected. The Operator reconciles the child back to the replicas in the custom resource. Change spec.replicas on the custom resource instead.

36. Your team wants an Operator just to install one Deployment and Service.

Suggest a Helm chart or Kustomize instead. An Operator adds code, RBAC and upgrades to maintain without giving any extra automation for that case.

How to practise

Install kind, scaffold a project with Kubebuilder (kubebuilder init then kubebuilder create api), and change the reconcile function to create a ConfigMap from a field in your custom resource. Then delete the ConfigMap and watch it come back. The 75+ Kubernetes Operators interview questions and the scenario Operator questions are the next step, and how Operators automate stateful apps explains the database use case in depth. Engineers who build Operators in Go should read our Operator engineer coding round questions.

A strong Kubernetes base makes all of this easier. The CKAD training covers CRDs, workloads and kubectl skills, in our Kharadi, Pune classroom or live online.

Frequently asked questions

Is a CRD the same as an Operator?

No. A CRD only adds a resource type. An Operator is the controller, usually with CRDs, that acts on those resources.

Do I need Go to build an Operator?

No. Operator SDK supports Ansible and Helm based Operators, and the Kubernetes docs list frameworks for Python, Java, Rust and .NET. Go is the most common choice.

What is the difference between Operator SDK and Kubebuilder?

Kubebuilder is the Kubernetes SIG framework for Go controllers. Operator SDK builds on the same libraries and adds Ansible and Helm support plus OLM and scorecard tooling.

What are Operator capability levels?

Five maturity levels defined by the Operator Framework: Basic Install, Seamless Upgrades, Full Lifecycle, Deep Insights and Auto Pilot.

What is a finalizer used for?

It delays deletion so the controller can clean up related resources, often outside the cluster, before the object disappears.

Should freshers learn Helm before Operators?

Yes. Helm and plain manifests come first, then CRDs and controllers. Operators make more sense once you know what they automate.

References

Interested in learning more?Get a callback from our training advisors.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0
Mridul I am a passionate technology enthusiast with a strong focus on DevOps, Cloud Computing, and Cybersecurity. Through my blogs at DevOps Training Institute, I aim to simplify complex concepts and share practical insights for learners and professionals. My goal is to empower readers with knowledge, hands-on tips, and industry best practices to stay ahead in the ever-evolving world of DevOps.