From da452933657b9039e5ca91edf559d9e92e1e2464 Mon Sep 17 00:00:00 2001 From: Tom Neuber Date: Sun, 29 Sep 2024 03:19:10 +0200 Subject: [PATCH] argo: deploy argo with helm --- argo/ingress.yaml | 24 ---------------------- argo/values.yaml | 51 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 24 deletions(-) delete mode 100644 argo/ingress.yaml create mode 100644 argo/values.yaml diff --git a/argo/ingress.yaml b/argo/ingress.yaml deleted file mode 100644 index 906bb78..0000000 --- a/argo/ingress.yaml +++ /dev/null @@ -1,24 +0,0 @@ ---- -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - annotations: - kubernetes.io/tls-acme: "true" - name: argocd-ingress - namespace: argocd -spec: - rules: - - host: "argo.services.yolokube.de" - http: - paths: - - pathType: Prefix - path: "/" - backend: - service: - name: argocd-server - port: - number: 80 - tls: - - hosts: - - argo.services.yolokube.de - secretName: argocd-tls-key diff --git a/argo/values.yaml b/argo/values.yaml new file mode 100644 index 0000000..7240092 --- /dev/null +++ b/argo/values.yaml @@ -0,0 +1,51 @@ +global: + domain: argo.services.yolokube.de +configs: + cm: + create: false + params: + create: true + server.insecure: true + rbac: + create: true + policy.csv: | + g, yolokube-general, role:admin +server: + ingress: + enabled: true + annotations: + kubernetes.io/tls-acme: "true" + tls: true +repoServer: + volumes: + - name: custom-tools + emptyDir: {} + - name: sops-key + secret: + secretName: sops-age + initContainers: + - name: install-ksops + image: viaductoss/ksops:v4.3.2 + command: ["/bin/sh", "-c"] + args: + - echo "Installing KSOPS..."; + mv ksops /custom-tools/; + mv kustomize /custom-tools/; + echo "Done."; + volumeMounts: + - mountPath: /custom-tools + name: custom-tools + volumeMounts: + - mountPath: /usr/local/bin/kustomize + name: custom-tools + subPath: kustomize + - mountPath: /usr/local/bin/ksops + name: custom-tools + subPath: ksops + - mountPath: /.config/sops/age + name: sops-key + env: + - name: XDG_CONFIG_HOME + value: /.config + - name: SOPS_AGE_KEY_FILE + value: /.config/sops/age/keys.txt