(01)Apply and sync
Linux
1kubectl apply -f argocd-application.yml2argocd app get myapp3argocd app sync myappGitOps Application manifest — sync Kubernetes from a Git repo
argocd-application.yml
1apiVersion: argoproj.io/v1alpha12kind: Application3metadata:4 name: myapp5 namespace: argocd6spec:7 project: default8 source:9 repoURL: https://github.com/your-org/your-repo.git10 targetRevision: main11 path: k8s/overlays/production12 destination:13 server: https://kubernetes.default.svc14 namespace: default15 syncPolicy:16 automated:17 prune: true18 selfHeal: true19 syncOptions:20 - CreateNamespace=trueStep 01
1kubectl apply -f argocd-application.yml2argocd app get myapp3argocd app sync myapp