Files
chart/library/ix-dev/community/whoogle/templates/_whoogle.tpl
Stavros Kois 73e5e3b40c Add whoogle to community train (#1654)
* 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
2023-10-23 17:30:01 +03:00

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 -}}