123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- {{- define "logseq.persistence" -}}
- persistence:
- nginx:
- enabled: true
- type: configmap
- objectName: nginx-config
- defaultMode: "0600"
- targetSelector:
- logseq:
- logseq:
- mountPath: /etc/nginx/conf.d/default.conf
- subPath: nginx.conf
- readOnly: true
- tmp:
- enabled: true
- type: emptyDir
- targetSelector:
- logseq:
- logseq:
- mountPath: /tmp
- varcache:
- enabled: true
- type: emptyDir
- targetSelector:
- logseq:
- logseq:
- mountPath: /var/cache/nginx
- varrun:
- enabled: true
- type: emptyDir
- targetSelector:
- logseq:
- logseq:
- mountPath: /var/run
- {{- range $idx, $storage := .Values.logseqStorage.additionalStorages }}
- {{ printf "logseq-%v" (int $idx) }}:
- enabled: true
- type: {{ $storage.type }}
- datasetName: {{ $storage.datasetName | default "" }}
- hostPath: {{ $storage.hostPath | default "" }}
- targetSelector:
- logseq:
- logseq:
- mountPath: {{ $storage.mountPath }}
- {{- end -}}
- {{- if .Values.logseqNetwork.certificateID }}
- cert:
- enabled: true
- type: secret
- objectName: logseq-cert
- defaultMode: "0600"
- items:
- - key: tls.key
- path: tls.key
- - key: tls.crt
- path: tls.crt
- targetSelector:
- logseq:
- logseq:
- mountPath: /etc/nginx/certs
- readOnly: true
- scaleCertificate:
- logseq-cert:
- enabled: true
- id: {{ .Values.logseqNetwork.certificateID }}
- {{- end -}}
- {{- end -}}
|