diff options
author | makefunstuff <[email protected]> | 2024-06-28 14:42:09 +0200 |
---|---|---|
committer | makefunstuff <[email protected]> | 2024-06-28 14:42:09 +0200 |
commit | 5f14386dcdd3530c79a31678a1a3bf59e3ddb6ef (patch) | |
tree | da923ec2a7ab1f4184e9597a23e8287425b800d0 /tools/argocd | |
parent | 320b06cb81e0fe434aea56494684fae101a89dfc (diff) | |
download | k3s-lab-5f14386dcdd3530c79a31678a1a3bf59e3ddb6ef.tar.gz |
broken
Diffstat (limited to 'tools/argocd')
-rw-r--r-- | tools/argocd/templates/deployment.yaml | 5 | ||||
-rw-r--r-- | tools/argocd/templates/ingress.yaml | 15 | ||||
-rw-r--r-- | tools/argocd/templates/secret.yaml | 11 | ||||
-rw-r--r-- | tools/argocd/values.yaml | 6 |
4 files changed, 29 insertions, 8 deletions
diff --git a/tools/argocd/templates/deployment.yaml b/tools/argocd/templates/deployment.yaml index b2fa31e..e0daf82 100644 --- a/tools/argocd/templates/deployment.yaml +++ b/tools/argocd/templates/deployment.yaml @@ -9,7 +9,7 @@ metadata: name: argocd-server namespace: argocd spec: - replicas: { { .Values.replicas "1" } } + replicas: {{ .Values.replicas }} selector: matchLabels: app: argocd-server @@ -27,5 +27,6 @@ spec: - name: ARGOCD_SERVER_ADMIN_PASSWORD valueFrom: secretKeyRef: - name: argocd-server + name: argocd-secret key: admin.password + diff --git a/tools/argocd/templates/ingress.yaml b/tools/argocd/templates/ingress.yaml index 5793540..1253287 100644 --- a/tools/argocd/templates/ingress.yaml +++ b/tools/argocd/templates/ingress.yaml @@ -2,17 +2,22 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: argocd-ingress - namespace: { { .Values.namespace } } + namespace: {{ .Values.namespace }} annotations: kubernetes.io/ingress.class: - { { .Values.ingress.annotations."kubernetes.io/ingress.class" } } + {{ .Values.ingress.annotations.kubernetes_io_ingress_class }} cert-manager.io/cluster-issuer: letsencrypt-prod + traefik.ingress.kubernetes.io/router.entrypoints: websecure + traefik.ingress.kubernetes.io/router.tls: "true" + traefik.ingress.kubernetes.io/router.tls.certresolver: "default" traefik.ingress.kubernetes.io/redirect-entry-point: https + traefik.ingress.kubernetes.io/router.tls.domains.0.main: topkek.cloud + traefik.ingress.kubernetes.io/router.tls.domains.0.sans: argocd.topkek.cloud traefik.ingress.kubernetes.io/ssl-redirect: "true" traefik.ingress.kubernetes.io/tls-acme: "true" spec: rules: - - host: { { .Values.ingress.hostname } } + - host: {{ .Values.ingress.hostname }} http: paths: - path: / @@ -24,5 +29,5 @@ spec: number: 80 tls: - hosts: - - { { .Values.ingress.hostname } } - secretName: { { .Values.ingress.tls.secretName } } + - {{ .Values.ingress.hostname }} + secretName: {{ .Values.ingress.tls.secretName }} diff --git a/tools/argocd/templates/secret.yaml b/tools/argocd/templates/secret.yaml new file mode 100644 index 0000000..c80372c --- /dev/null +++ b/tools/argocd/templates/secret.yaml @@ -0,0 +1,11 @@ +{{- if not (lookup "v1" "Secret" .Values.namespace "argocd-secret") }} +apiVersion: v1 +kind: Secret +metadata: + name: argocd-secret + namespace: {{ .Values.namespace }} +type: Opaque +data: + admin.password: {{ .Values.argocd.adminPassword | b64enc }} +{{- end }} + diff --git a/tools/argocd/values.yaml b/tools/argocd/values.yaml index 01c169c..4ecc684 100644 --- a/tools/argocd/values.yaml +++ b/tools/argocd/values.yaml @@ -1,3 +1,4 @@ +replicas: 1 namespace: argocd ingress: enabled: true @@ -6,4 +7,7 @@ ingress: kubernetes.io/ingress.class: "traefik" tls: enabled: true - secretName: argocd-tls + secretName: argocd-topkek-cloud-tls +argocd: + adminPassword: changeme + |