1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: myapp-argo-application
namespace: argocd
spec:
project: default
# repository, revision, path, environment
source:
repoURL: https://gitlab.com/nanuchi/argocd-app-config.git
targetRevision: HEAD
path: dev
destination:
server: https://kubernetes.default.svc
namespace: myapp
syncPolicy:
# create namespace automatically
syncOptions:
- CreateNamespace=true
# sync automatically
automated:
# delete components if they get removed or renamed in repo
prune: true
# undo manual cluster changes
selfHeal: true
|