add nfs subdir provisioner

This commit is contained in:
James Andariese 2023-04-26 18:56:49 -05:00
parent f023e4bc6c
commit f76673daae
2 changed files with 40 additions and 0 deletions

37
argo1/templates/nfs.yaml Normal file
View File

@ -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 }}

View File

@ -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