Files
chart/library/ix-dev/community/searxng/templates/_searxng.tpl
Stavros Kois 0ef9035e82 NAS-122990 / 23.10 / Add searxng to community train (#1362)
* Add `searxng` to `community` train

* add tempaltes

* add UI and metadata

* update readme

* remove non-existent option

* bump
2023-07-17 16:09:35 +03:00

49 lines
1.4 KiB
Smarty

{{- define "searxng.workload" -}}
workload:
searxng:
enabled: true
primary: true
type: Deployment
podSpec:
hostNetwork: {{ .Values.searxngNetwork.hostNetwork }}
containers:
searxng:
enabled: true
primary: true
imageSelector: image
securityContext:
runAsUser: 0
runAsGroup: 0
runAsNonRoot: false
capabilities:
add:
- SETUID
- SETGID
env:
BIND_ADDRESS: {{ printf "0.0.0.0:%v" .Values.searxngNetwork.webPort }}
INSTANCE_NAME: {{ .Values.searxngConfig.instanceName }}
{{ with .Values.searxngConfig.additionalEnvs }}
envList:
{{ range $env := . }}
- name: {{ $env.name }}
value: {{ $env.value }}
{{ end }}
{{ end }}
probes:
liveness:
enabled: true
type: http
port: "{{ .Values.searxngNetwork.webPort }}"
path: /healthz
readiness:
enabled: true
type: http
port: "{{ .Values.searxngNetwork.webPort }}"
path: /healthz
startup:
enabled: true
type: http
port: "{{ .Values.searxngNetwork.webPort }}"
path: /healthz
{{- end -}}