dex.yml 1.26 KB
Newer Older
torgiren's avatar
torgiren committed
1
2
3
4
5
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: dex
  namespace: argocd
6
7
8
  annotations:
    argocd.argoproj.io/sync-options: Prune=true
    argocd.argoproj.io/sync-wave: "-1"
torgiren's avatar
torgiren committed
9
spec:
10
  project: exphost
torgiren's avatar
torgiren committed
11
12
  source:
    repoURL: 'https://charts.dexidp.io'
13
    targetRevision: 0.14.1
torgiren's avatar
torgiren committed
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
    chart: dex
    helm:
      values: |
        configSecret:
          create: false
          name: dex-config
        ingress:
          enabled: true
          hosts:
            - host: auth.{{ .Values.domain }}
              paths:
                - path: /dex
                  pathType: ImplementationSpecific
          tls:
            - hosts:
                - auth.{{ .Values.domain }}
              secretName: dex-acme.tls
          annotations:
            cert-manager.io/cluster-issuer: acme-issuer
33
34
35
36
            nginx.ingress.kubernetes.io/enable-cors: "true"
            nginx.ingress.kubernetes.io/cors-allow-methods: "PUT, GET, POST, OPTIONS"
            nginx.ingress.kubernetes.io/cors-allow-origin: "*"
            nginx.ingress.kubernetes.io/cors-allow-credentials: "true"
torgiren's avatar
torgiren committed
37
38
39
40
41
42
  destination:
    server: 'https://kubernetes.default.svc'
    namespace: dex
  syncPolicy:
    automated:
      prune: true
torgiren's avatar
torgiren committed
43
      selfHeal: true
torgiren's avatar
torgiren committed
44
45
    syncOptions:
      - CreateNamespace=true