Add helm chart for SearXNG

This commit is contained in:
Émilien Devos 2022-06-05 15:32:39 +00:00 committed by GitHub
parent 0ce9d9e893
commit c52fb8a657
10 changed files with 390 additions and 0 deletions

View file

@ -0,0 +1 @@
{{- include "common.notes.defaultNotes" . -}}

View file

@ -0,0 +1,17 @@
{{/* First Make sure all variables are set and merged properly */}}
{{- include "common.values.setup" . }}
{{/* Append the configMap volume to the volumes */}}
{{- define "searxng.settingsVolume" -}}
enabled: "true"
mountPath: "/etc/searxng/settings.yml"
subPath: "settings.yml"
type: "custom"
volumeSpec:
secret:
secretName: {{ include "common.names.fullname" . }}-config
{{- end -}}
{{- $_ := set .Values.persistence "searxng-config" (include "searxng.settingsVolume" . | fromYaml) -}}
{{/* Render the templates */}}
{{ include "common.all" . }}

View file

@ -0,0 +1,11 @@
{{- include "common.values.setup" . -}}
---
apiVersion: v1
kind: Secret
metadata:
name: {{ include "common.names.fullname" . }}-config
labels:
{{- include "common.labels" . | nindent 4 }}
data:
settings.yml: |-
{{ toYaml .Values.searxng.config | b64enc | indent 4 }}