Skip to main content
InterviewHubPRO
Section Overview
Q5

Question 5 of 50

Part 1: GitOps Fundamentals & Core Principles (Junior / Entry-Level)

10%
GitOps & ArgoCD (50 Qs)•Part 1: GitOps Fundamentals & Core Principles (Junior / Entry-Level)

What are `prune` and `selfHeal` in ArgoCD sync policies?

junior LevelgitopsGitOps Fundamentals

In Simple Words:

  • prune: true: When an engineer deletes a Kubernetes YAML file from the Git repository, ArgoCD will actively delete the corresponding live resource from the Kubernetes cluster. (If prune: false, the deleted file remains running in the cluster as an orphaned object).
  • selfHeal: true: If an operator manually runs kubectl edit deployment or deletes a service directly in the cluster, ArgoCD detects the discrepancy within seconds and automatically re-applies the Git manifest, overwriting the rogue manual change.