-
Notifications
You must be signed in to change notification settings - Fork 36
/
argocd-root.yaml
87 lines (86 loc) · 1.94 KB
/
argocd-root.yaml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Configures ArgoCD to automatically sync all resources in the platform-applications directory
# as well as all sub-directories of the applications directory.
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: platform
namespace: argocd
spec:
description: Resources required for the platform.
clusterResourceWhitelist:
- group: "*"
kind: "*"
destinations:
- namespace: "*"
server: "*"
namespaceResourceWhitelist:
- group: "*"
kind: "*"
sourceRepos:
- "*"
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: platform
namespace: argocd
spec:
destination:
namespace: argocd
server: https://kubernetes.default.svc
project: default
source:
path: platform-applications
repoURL: https://github.com/<your-github-user>/<your-repo-name>.git
syncPolicy:
automated:
allowEmpty: true
prune: true
selfHeal: false
---
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: applications
namespace: argocd
spec:
description: Applications running on top of the platform.
clusterResourceWhitelist:
- group: "*"
kind: "*"
destinations:
- namespace: "*"
server: "*"
namespaceResourceWhitelist:
- group: "*"
kind: "*"
sourceRepos:
- "*"
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: applications
namespace: argocd
spec:
generators:
- git:
repoURL: https://github.com/<your-github-user>/<your-repo-name>.git
revision: HEAD
directories:
- path: applications/*
template:
metadata:
name: "{{path.basename}}"
spec:
project: applications
syncPolicy:
automated:
allowEmpty: true
prune: true
source:
repoURL: https://github.com/<your-github-user>/<your-repo-name>.git
path: "{{path}}"
destination:
server: https://kubernetes.default.svc
namespace: default