mirror of
https://github.com/truenas/charts.git
synced 2026-04-13 17:52:13 +08:00
55 lines
2.0 KiB
Smarty
55 lines
2.0 KiB
Smarty
{{- define "linkding.workload" -}}
|
|
workload:
|
|
linkding:
|
|
enabled: true
|
|
primary: true
|
|
type: Deployment
|
|
podSpec:
|
|
hostNetwork: {{ .Values.linkdingNetwork.hostNetwork }}
|
|
containers:
|
|
linkding:
|
|
enabled: true
|
|
primary: true
|
|
imageSelector: {{ .Values.linkdingConfig.imageSelector | default "image" }}
|
|
securityContext:
|
|
runAsUser: {{ .Values.linkdingRunAs.user }}
|
|
runAsGroup: {{ .Values.linkdingRunAs.group }}
|
|
readOnlyRootFilesystem: false
|
|
envFrom:
|
|
- secretRef:
|
|
name: linkding
|
|
- configMapRef:
|
|
name: linkding
|
|
{{ with .Values.linkdingConfig.additionalEnvs }}
|
|
envList:
|
|
{{ range $env := . }}
|
|
- name: {{ $env.name }}
|
|
value: {{ $env.value }}
|
|
{{ end }}
|
|
{{ end }}
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
type: http
|
|
port: {{ .Values.linkdingNetwork.webPort }}
|
|
path: /health
|
|
readiness:
|
|
enabled: true
|
|
type: http
|
|
port: {{ .Values.linkdingNetwork.webPort }}
|
|
path: /health
|
|
startup:
|
|
enabled: true
|
|
type: http
|
|
port: {{ .Values.linkdingNetwork.webPort }}
|
|
path: /health
|
|
initContainers:
|
|
{{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
|
|
"UID" .Values.linkdingRunAs.user
|
|
"GID" .Values.linkdingRunAs.group
|
|
"mode" "check"
|
|
"type" "install") | nindent 8 }}
|
|
{{- include "ix.v1.common.app.postgresWait" (dict "name" "01-postgres-wait"
|
|
"secretName" "postgres-creds") | nindent 8 }}
|
|
{{- end -}}
|