Maven / GitOps Interview Questions
What is a GitOps operator and what role does it play?
A GitOps operator is a software agent that runs inside the target cluster and implements the pull-based reconciliation loop. It is the engine that turns a static Git repository into a live, self-correcting deployment system. Without an operator, GitOps is just a documentation convention — the operator is what closes the loop between intent (Git) and reality (cluster).
An operator performs four continuous activities:
- Source watching: Polls a Git repository (or OCI artifact registry) on a configurable interval — typically every 1–5 minutes — or listens for a webhook notification. It detects when the desired state has changed.
- Manifest rendering: Fetches the source and renders it into plain Kubernetes manifests. Depending on configuration, this may involve running
kustomize build, rendering a Helm chart, or processing Jsonnet templates. - Diff computation: Compares the rendered desired state against the live resources in the cluster (fetched from the Kubernetes API). Identifies resources that need to be created, updated, or deleted.
- Reconciliation: Applies the diff using
kubectl apply(or server-side apply), bringing the cluster to the declared state. Updates the status of its own CRs to reflect sync health.
The two dominant GitOps operators in production today are Argo CD (CNCF graduated, rich UI, Application/AppProject model) and Flux CD (CNCF graduated, composable controllers, CLI-first). Both support Kubernetes, Helm, and Kustomize as manifest sources.
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
