mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Add helm chart for SearXNG
This commit is contained in:
parent
0ce9d9e893
commit
c52fb8a657
10 changed files with 390 additions and 0 deletions
1
kubernetes/chart/templates/NOTES.txt
Normal file
1
kubernetes/chart/templates/NOTES.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
{{- include "common.notes.defaultNotes" . -}}
|
||||
17
kubernetes/chart/templates/common.yaml
Normal file
17
kubernetes/chart/templates/common.yaml
Normal 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" . }}
|
||||
11
kubernetes/chart/templates/configmap.yaml
Normal file
11
kubernetes/chart/templates/configmap.yaml
Normal 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 }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue