mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-11 01:49:44 +00:00
argocd: get values from git
This commit is contained in:
parent
e663f54ffe
commit
30f1d5f17f
4 changed files with 48 additions and 39 deletions
|
|
@ -33,7 +33,9 @@ spec:
|
||||||
path: state/gullfaxi/apps/
|
path: state/gullfaxi/apps/
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
directory:
|
directory:
|
||||||
|
# https://argo-cd.readthedocs.io/en/stable/user-guide/directory/
|
||||||
recurse: false
|
recurse: false
|
||||||
|
exclude: '{*-values.yaml}'
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
automated:
|
automated:
|
||||||
prune: true
|
prune: true
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,9 @@ spec:
|
||||||
path: state/gullfaxi/system/
|
path: state/gullfaxi/system/
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
directory:
|
directory:
|
||||||
|
# https://argo-cd.readthedocs.io/en/stable/user-guide/directory/
|
||||||
recurse: false
|
recurse: false
|
||||||
|
exclude: '{*-values.yaml}'
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
automated:
|
automated:
|
||||||
prune: true
|
prune: true
|
||||||
|
|
|
||||||
33
state/gullfaxi/system/argo-cd-values.yaml
Normal file
33
state/gullfaxi/system/argo-cd-values.yaml
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
configs:
|
||||||
|
cm:
|
||||||
|
url: https://argocd.ioot.xyz
|
||||||
|
exec.enabled: true
|
||||||
|
statusbadge.enabled: "true"
|
||||||
|
dex.config: |
|
||||||
|
connectors:
|
||||||
|
- type: github
|
||||||
|
id: github
|
||||||
|
name: GitHub
|
||||||
|
config:
|
||||||
|
clientID: $dex.github.clientId
|
||||||
|
clientSecret: $dex.github.clientSecret
|
||||||
|
rbac:
|
||||||
|
policy.csv: |
|
||||||
|
# sub for amkartashov github account with id 7404372
|
||||||
|
g, Cgc3NDA0MzcyEgZnaXRodWI, role:admin
|
||||||
|
|
||||||
|
server:
|
||||||
|
# https://argo-cd.readthedocs.io/en/stable/operator-manual/ingress/#ssl-passthrough-with-cert-manager-and-lets-encrypt
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
ingressClassName: nginx
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt
|
||||||
|
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
|
||||||
|
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
|
||||||
|
hosts:
|
||||||
|
- argocd.ioot.xyz
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- argocd.ioot.xyz
|
||||||
|
secretName: argocd-server-tls
|
||||||
|
|
@ -14,42 +14,14 @@ spec:
|
||||||
selfHeal: true
|
selfHeal: true
|
||||||
syncOptions:
|
syncOptions:
|
||||||
- CreateNamespace=true
|
- CreateNamespace=true
|
||||||
source:
|
# https://argo-cd.readthedocs.io/en/stable/user-guide/multiple_sources/#helm-value-files-from-external-git-repository
|
||||||
repoURL: https://argoproj.github.io/argo-helm
|
sources:
|
||||||
chart: argo-cd
|
- repoURL: git@github.com:amkartashov/gf-k8s.git
|
||||||
targetRevision: 5.45.0
|
targetRevision: main
|
||||||
helm:
|
ref: values
|
||||||
releaseName: argocd
|
- repoURL: https://argoproj.github.io/argo-helm
|
||||||
values: |
|
chart: argo-cd
|
||||||
configs:
|
targetRevision: 5.45.0
|
||||||
cm:
|
helm:
|
||||||
url: https://argocd.ioot.xyz
|
valueFiles:
|
||||||
exec.enabled: true
|
- $values/state/gullfaxi/system/argo-cd-values.yaml
|
||||||
statusbadge.enabled: "true"
|
|
||||||
dex.config: |
|
|
||||||
connectors:
|
|
||||||
- type: github
|
|
||||||
id: github
|
|
||||||
name: GitHub
|
|
||||||
config:
|
|
||||||
clientID: $dex.github.clientId
|
|
||||||
clientSecret: $dex.github.clientSecret
|
|
||||||
rbac:
|
|
||||||
policy.csv: |
|
|
||||||
# sub for amkartashov github account with id 7404372
|
|
||||||
g, Cgc3NDA0MzcyEgZnaXRodWI, role:admin
|
|
||||||
server:
|
|
||||||
# https://argo-cd.readthedocs.io/en/stable/operator-manual/ingress/#ssl-passthrough-with-cert-manager-and-lets-encrypt
|
|
||||||
ingress:
|
|
||||||
enabled: true
|
|
||||||
ingressClassName: nginx
|
|
||||||
annotations:
|
|
||||||
cert-manager.io/cluster-issuer: letsencrypt
|
|
||||||
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
|
|
||||||
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
|
|
||||||
hosts:
|
|
||||||
- argocd.ioot.xyz
|
|
||||||
tls:
|
|
||||||
- hosts:
|
|
||||||
- argocd.ioot.xyz
|
|
||||||
secretName: argocd-server-tls
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue