mirror of
https://github.com/truenas/charts.git
synced 2026-04-14 10:40:31 +08:00
* add `planka` to `community` train * lock file * add initial tempaltes * add service * fix url * update portal * test * metadata * questions * typo * add validation * typo * fix logic * switch to uri type * update description * bump common
57 lines
1.9 KiB
Smarty
57 lines
1.9 KiB
Smarty
{{- define "planka.workload" -}}
|
|
workload:
|
|
planka:
|
|
enabled: true
|
|
primary: true
|
|
type: Deployment
|
|
podSpec:
|
|
hostNetwork: {{ .Values.plankaNetwork.hostNetwork }}
|
|
containers:
|
|
planka:
|
|
enabled: true
|
|
primary: true
|
|
imageSelector: image
|
|
securityContext:
|
|
runAsUser: 1000
|
|
runAsGroup: 1000
|
|
readOnlyRootFilesystem: false
|
|
env:
|
|
PORT: {{ .Values.plankaNetwork.webPort }}
|
|
envFrom:
|
|
- secretRef:
|
|
name: planka
|
|
- configMapRef:
|
|
name: planka
|
|
{{ with .Values.plankaConfig.additionalEnvs }}
|
|
envList:
|
|
{{ range $env := . }}
|
|
- name: {{ $env.name }}
|
|
value: {{ $env.value }}
|
|
{{ end }}
|
|
{{ end }}
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
type: http
|
|
port: {{ .Values.plankaNetwork.webPort }}
|
|
path: /
|
|
readiness:
|
|
enabled: true
|
|
type: http
|
|
port: {{ .Values.plankaNetwork.webPort }}
|
|
path: /
|
|
startup:
|
|
enabled: true
|
|
type: http
|
|
port: {{ .Values.plankaNetwork.webPort }}
|
|
path: /
|
|
initContainers:
|
|
{{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
|
|
"UID" 1000
|
|
"GID" 1000
|
|
"mode" "check"
|
|
"type" "init") | nindent 8 }}
|
|
{{- include "ix.v1.common.app.postgresWait" (dict "name" "postgres-wait"
|
|
"secretName" "postgres-creds") | nindent 8 }}
|
|
{{- end -}}
|