🚀
Kubernetes

Argo CD Application

GitOps Application manifest — sync Kubernetes from a Git repo

📋Configuration Files

argocd-application.yml

yaml
1apiVersion: argoproj.io/v1alpha1
2kind: Application
3metadata:
4 name: myapp
5 namespace: argocd
6spec:
7 project: default
8 source:
9 repoURL: https://github.com/your-org/your-repo.git
10 targetRevision: main
11 path: k8s/overlays/production
12 destination:
13 server: https://kubernetes.default.svc
14 namespace: default
15 syncPolicy:
16 automated:
17 prune: true
18 selfHeal: true
19 syncOptions:
20 - CreateNamespace=true
📄

Step 01

Deploy Argo CD Application

(01)Apply and sync

Linux
1kubectl apply -f argocd-application.yml
2argocd app get myapp
3argocd app sync myapp