mirror of
https://github.com/truenas/charts.git
synced 2026-04-26 03:22:45 +08:00
* initial commit * add chart and item yaml * add strategy * add templates * fix tag * rofs false * change user * fix user * hmm * whops * fix * update readme * update questions * typo * update readme
59 lines
1.9 KiB
Smarty
59 lines
1.9 KiB
Smarty
{{- define "whoogle.workload" -}}
|
|
{{- $redirects := list -}}
|
|
{{- range $r := .Values.whoogleConfig.redirects -}}
|
|
{{- $redirects = append $redirects (printf "%s:%s" $r.src $r.dst) -}}
|
|
{{- end }}
|
|
workload:
|
|
whoogle:
|
|
enabled: true
|
|
primary: true
|
|
type: Deployment
|
|
podSpec:
|
|
hostNetwork: {{ .Values.whoogleNetwork.hostNetwork }}
|
|
securityContext:
|
|
fsGroup: 927
|
|
containers:
|
|
whoogle:
|
|
enabled: true
|
|
primary: true
|
|
imageSelector: image
|
|
securityContext:
|
|
runAsUser: 927
|
|
runAsGroup: 927
|
|
readOnlyRootFilesystem: false
|
|
env:
|
|
EXPOSE_PORT: {{ .Values.whoogleNetwork.webPort }}
|
|
{{- with $redirects }}
|
|
WHOOGLE_REDIRECTS: {{ join "," $redirects }}
|
|
{{- end -}}
|
|
{{ with .Values.whoogleConfig.additionalEnvs }}
|
|
envList:
|
|
{{ range $env := . }}
|
|
- name: {{ $env.name }}
|
|
value: {{ $env.value }}
|
|
{{ end }}
|
|
{{ end }}
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
type: http
|
|
port: {{ .Values.whoogleNetwork.webPort }}
|
|
path: /healthz
|
|
readiness:
|
|
enabled: true
|
|
type: http
|
|
port: {{ .Values.whoogleNetwork.webPort }}
|
|
path: /healthz
|
|
startup:
|
|
enabled: true
|
|
type: http
|
|
port: {{ .Values.whoogleNetwork.webPort }}
|
|
path: /healthz
|
|
initContainers:
|
|
{{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
|
|
"UID" 927
|
|
"GID" 927
|
|
"mode" "check"
|
|
"type" "init") | nindent 8 }}
|
|
{{- end -}}
|