InterviewStack.io LogoInterviewStack.io

Kubernetes Deployment and Gitops Questions

Focuses on implementing safe deployment patterns specifically in Kubernetes and on GitOps practices for declarative, version controlled operations. Topics include Kubernetes native rollout models such as rolling updates, canary releases, and blue green deployments; pod lifecycle considerations, readiness and liveness probes, resource limits, and health checks; implementing automated continuous deployment pipelines that target Kubernetes clusters; and GitOps principles including declarative manifests, version control as the source of truth, automated reconciliation, and observable drift management. Candidates should also know common GitOps tools such as Argo CD and Flux, manifest management approaches like Helm and Kustomize, and operational concerns such as rollback procedures, security and access controls, and integration with monitoring.

MediumTechnical
95 practiced
An operator reports the cluster drifted because someone updated a Deployment directly on the cluster. Using Argo CD, explain how you'd detect this drift, alert the team, and define a policy for auto-sync vs manual reconciliation. Mention concrete Argo CD configuration knobs (e.g., app settings, autoPrune, project restrictions) you'd use.
MediumSystem Design
69 practiced
Design release gates and approval workflows for a GitOps pipeline that must satisfy compliance requirements (auditable approvals for production). Describe where gates are enforced (CI, PR, Argo CD), what metadata should be stored in Git, and how to implement human approvals without breaking declarative principles.
HardSystem Design
70 practiced
Design a progressive delivery platform for a 50-service microservices application using Argo Rollouts (or equivalent) and a service mesh. The platform must support canary and blue-green strategies, automated metric-driven promotions, cross-service coordination for multi-service releases, observability hooks, and safe rollback. Describe architecture, key components, and orchestration approach.
HardTechnical
66 practiced
Write pseudocode for a Kubernetes validating admission webhook that enforces resource policies: every Pod/Deployment must set requests.cpu >= 100m and limits.cpu <= 500m; requests.memory >= 128Mi and limits.memory <= 1Gi. Show the core validation logic handling an AdmissionReview, an example rejection message payload, and briefly explain how you would register and secure this webhook in the cluster (TLS and RBAC highlights).
HardTechnical
85 practiced
Explain how reconciliation loops work in GitOps controllers (for example Argo CD and Flux). Discuss scaling challenges when managing thousands of manifests across many clusters, including informer/watch scaling, reconcile frequency, rate-limiting, caching strategies, and design decisions to reduce API-server and controller load.

Unlock Full Question Bank

Get access to hundreds of Kubernetes Deployment and Gitops interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.