mirror of
https://github.com/truenas/charts.git
synced 2026-04-13 17:52:13 +08:00
svc and storage
This commit is contained in:
committed by
Stavros Kois
parent
1f7e2637dc
commit
85e53671cc
43
library/ix-dev/community/vikunja/templates/_persistence.tpl
Normal file
43
library/ix-dev/community/vikunja/templates/_persistence.tpl
Normal file
@@ -0,0 +1,43 @@
|
||||
{{- define "vikunja.persistence" -}}
|
||||
persistence:
|
||||
tmp:
|
||||
enabled: true
|
||||
type: emptyDir
|
||||
targetSelector:
|
||||
vikunja:
|
||||
vikunja:
|
||||
mountPath: /tmp
|
||||
data:
|
||||
enabled: true
|
||||
{{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.vikunjaStorage.data) | nindent 4 }}
|
||||
targetSelector:
|
||||
vikunja-api:
|
||||
vikunja-api:
|
||||
mountPath: /app/vikunja/files
|
||||
nginx:
|
||||
enabled: true
|
||||
type: configmap
|
||||
objectName: nginx-config
|
||||
defaultMode: "0600"
|
||||
targetSelector:
|
||||
vikunja:
|
||||
vikunja:
|
||||
mountPath: /etc/nginx/conf.d/default.conf
|
||||
subPath: nginx-config
|
||||
readOnly: true
|
||||
|
||||
{{- range $idx, $storage := .Values.vikunjaStorage.additionalStorages }}
|
||||
{{ printf "vikunja-%v" (int $idx) }}:
|
||||
enabled: true
|
||||
{{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
|
||||
targetSelector:
|
||||
vikunja-api:
|
||||
vikunja-api:
|
||||
mountPath: {{ $storage.mountPath }}
|
||||
{{- end -}}
|
||||
|
||||
{{- include "ix.v1.common.app.postgresPersistence"
|
||||
(dict "pgData" .Values.vikunjaStorage.pgData
|
||||
"pgBackup" .Values.vikunjaStorage.pgBackup
|
||||
) | nindent 2 }}
|
||||
{{- end -}}
|
||||
@@ -1,17 +1,37 @@
|
||||
{{- define "vikunja.service" -}}
|
||||
service:
|
||||
vikunja:
|
||||
vikunja-proxy:
|
||||
enabled: true
|
||||
primary: true
|
||||
type: NodePort
|
||||
targetSelector: vikunja
|
||||
targetSelector: vikunja-proxy
|
||||
ports:
|
||||
webui:
|
||||
enabled: true
|
||||
primary: true
|
||||
port: {{ .Values.vikunjaNetwork.webPort }}
|
||||
nodePort: {{ .Values.vikunjaNetwork.webPort }}
|
||||
targetSelector: vikunja
|
||||
targetSelector: vikunja-proxy
|
||||
vikunja-api:
|
||||
enabled: true
|
||||
primary: true
|
||||
type: ClusterIP
|
||||
targetSelector: vikunja-api
|
||||
ports:
|
||||
api:
|
||||
enabled: true
|
||||
primary: true
|
||||
port: {{ .Values.vikunjaPorts.api }}
|
||||
targetSelector: vikunja-api
|
||||
vikunja-frontend:
|
||||
enabled: true
|
||||
type: ClusterIP
|
||||
targetSelector: vikunja-frontend
|
||||
ports:
|
||||
webui:
|
||||
enabled: true
|
||||
primary: true
|
||||
port: {{ .Values.vikunjaPorts.frontHttp }}
|
||||
targetSelector: vikunja-frontend
|
||||
redis:
|
||||
enabled: true
|
||||
type: ClusterIP
|
||||
|
||||
Reference in New Issue
Block a user