_persistence.tpl 729 B

1234567891011121314151617181920212223242526
  1. {{- define "wgeasy.persistence" -}}
  2. persistence:
  3. config:
  4. enabled: true
  5. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.wgStorage.config) | nindent 4 }}
  6. targetSelector:
  7. wgeasy:
  8. wgeasy:
  9. mountPath: /etc/wireguard
  10. tmp:
  11. enabled: true
  12. type: emptyDir
  13. targetSelector:
  14. wgeasy:
  15. wgeasy:
  16. mountPath: /tmp
  17. {{- range $idx, $storage := .Values.wgStorage.additionalStorages }}
  18. {{ printf "wgeasy-%v:" (int $idx) }}
  19. enabled: true
  20. {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
  21. targetSelector:
  22. wgeasy:
  23. wgeasy:
  24. mountPath: {{ $storage.mountPath }}
  25. {{- end }}
  26. {{- end -}}