mirror of
https://github.com/truenas/charts.git
synced 2026-05-01 14:00:42 +08:00
41 lines
1.2 KiB
Smarty
41 lines
1.2 KiB
Smarty
{{- define "vikunja.frontend" -}}
|
|
{{- $fullname := (include "ix.v1.common.lib.chart.names.fullname" $) -}}
|
|
{{- $apiUrl := printf "http://%v:%v/health" $fullname .Values.vikunjaPorts.api }}
|
|
workload:
|
|
vikunja-frontend:
|
|
enabled: true
|
|
type: Deployment
|
|
podSpec:
|
|
hostNetwork: false
|
|
containers:
|
|
vikunja-frontend:
|
|
enabled: true
|
|
primary: true
|
|
imageSelector: frontendImage
|
|
securityContext:
|
|
runAsUser: 101
|
|
runAsGroup: 101
|
|
readOnlyRootFilesystem: false
|
|
envFrom:
|
|
- configMapRef:
|
|
name: vikunja-frontend
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
type: http
|
|
port: {{ .Values.vikunjaPorts.frontHttp }}
|
|
path: /ready
|
|
readiness:
|
|
enabled: true
|
|
type: http
|
|
port: {{ .Values.vikunjaPorts.frontHttp }}
|
|
path: /ready
|
|
startup:
|
|
enabled: true
|
|
type: http
|
|
port: {{ .Values.vikunjaPorts.frontHttp }}
|
|
path: /ready
|
|
initContainers:
|
|
{{- include "vikunja.wait.init" (dict "url" $apiUrl) | indent 8 }}
|
|
{{- end -}}
|