apiVersion: nfs.rook.io/v1alpha1 kind: NFSServer metadata: name: {{ include "rook-nfs-server.fullname" . }} labels: {{- include "rook-nfs-server.labels" . | nindent 4 }} spec: replicas: {{ .Values.replicaCount }} exports: {{- range .Values.exports }} - name: {{ .name }} server: accessMode: {{ .server.accessMode }} squash: {{ .server.squash | quote }} {{- with .server.allowedClients }} allowedClients: {{- toYaml . | nindent 8 }} {{- end }} persistentVolumeClaim: claimName: {{ $.Release.Name }}-{{ .name }}-pvc {{ end }} {{- with .Values.podAnnotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }}