From fb9b1a7697502ded021b0ce2674c4aa1f4228dde Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Sun, 14 Jan 2024 18:25:38 +0100 Subject: [PATCH] feat(secrets): Add argocd handled secrets --- manifests/kustomization.yaml | 1 + manifests/secrets.yaml | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 manifests/secrets.yaml diff --git a/manifests/kustomization.yaml b/manifests/kustomization.yaml index 131512f..19b7aaf 100644 --- a/manifests/kustomization.yaml +++ b/manifests/kustomization.yaml @@ -3,6 +3,7 @@ kind: Kustomization resources: - namespace.yaml + - secrets.yaml - database.yaml - service.yaml - ingress.yaml diff --git a/manifests/secrets.yaml b/manifests/secrets.yaml new file mode 100644 index 0000000..c9da1c0 --- /dev/null +++ b/manifests/secrets.yaml @@ -0,0 +1,24 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: vaultwarden-secrets + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + source: + repoURL: https://git.halis.io/athens-school/k3s-secrets.git + targetRevision: dev + path: vaultwarden + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=false + - ApplyOutOfSyncOnly=true + - PruneLast=true + destination: + server: https://kubernetes.default.svc + namespace: vaultwarden