From f76673daaed4048f3d2ea56b7692245d139647f9 Mon Sep 17 00:00:00 2001 From: James Andariese Date: Wed, 26 Apr 2023 18:56:49 -0500 Subject: [PATCH] add nfs subdir provisioner --- argo1/templates/nfs.yaml | 37 +++++++++++++++++++++++++++++++++++++ argo1/values.yaml | 3 +++ 2 files changed, 40 insertions(+) create mode 100644 argo1/templates/nfs.yaml diff --git a/argo1/templates/nfs.yaml b/argo1/templates/nfs.yaml new file mode 100644 index 0000000..21a8b39 --- /dev/null +++ b/argo1/templates/nfs.yaml @@ -0,0 +1,37 @@ +# {{ if (index .Values "nfs").enabled }} +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: "{{ .Release.Name }}-nfs" + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + source: + chart: "nfs-subdir-external-provisioner" + repoURL: "" + targetRevision: "4.0.18" + helm: + values: |- + {{ (index .Values "nfs").values | nindent 8 }} + # the next line preserves the release name. + # this is optional but recommended for singleton services. + releaseName: "nfs" + destination: + server: "https://kubernetes.default.svc" + namespace: "kube-system" + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true + retry: + limit: 10 + backoff: + duration: 5s + factor: 2 + maxDuration: 3m0s +# {{- end }} diff --git a/argo1/values.yaml b/argo1/values.yaml index 127bf09..0fe7c78 100644 --- a/argo1/values.yaml +++ b/argo1/values.yaml @@ -24,3 +24,6 @@ vault-agent-injector: global: # disable global vault because we're only using this as an agent injector enabled: false + +nfs: + enabled: false