-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathargoCd.yaml
50 lines (49 loc) · 1.55 KB
/
argoCd.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
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: argocd
namespace: {{.Release.Namespace }}
spec:
project: argocd
source:
repoURL: 'https://argoproj.github.io/argo-helm'
targetRevision: '5.*'
chart: argo-cd
helm:
values: |
server:
extraArgs:
- --insecure
config:
admin.enabled: "false"
statusbadge.enabled: "true"
url: {{.Values.domain }}
# https://argocd.readthedocs.io/en/stable/operator-manual/user-management/
# https://argo-cd.readthedocs.io/en/stable/operator-manual/user-management/google/
dex.config: |
connectors:
- config:
issuer: https://accounts.google.com
# Reference to key in argo-secret Kubernetes resource
clientID: $dex.google.clientID
# Reference to key in argo-secret Kubernetes resource
clientSecret: $dex.google.clientSecret
type: oidc
id: google
name: Google
# https://argo-cd.readthedocs.io/en/stable/operator-manual/rbac/#rbac-configuration
rbacConfig:
policy.default: 'role:readonly'
policy.csv: |
g, [email protected], role:admin
scopes: '[email]'
destination:
server: 'https://kubernetes.default.svc'
namespace: argocd
syncPolicy:
automated:
prune: true
selfHeal: true
ignoreDifferences:
- kind: CustomResourceDefinition
name: applications.argoproj.io