Skip to main content
InterviewHubPRO
Section Overview
Q4

Question 4 of 50

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

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

What is the ArgoCD `Application` CRD?

junior LevelCode ExamplegitopsGitOps Fundamentals

In Simple Words: The Application Custom Resource Definition (CRD) is the primary resource in ArgoCD. It binds a Git repository source to a target Kubernetes cluster destination.

yaml
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: payment-service
  namespace: argocd
spec:
  project: default
  source:
    repoURL: 'https://github.com/enterprise/k8s-manifests.git'
    targetRevision: main
    path: overlays/production
  destination:
    server: 'https://kubernetes.default.svc' # Local in-cluster
    namespace: payments
  syncPolicy:
    automated:
      prune: true     # Deletes resources removed from Git
      selfHeal: true  # Overwrites manual changes made via kubectl
    syncOptions:
      - CreateNamespace=true