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