This commit is contained in:
DeveloperDurp 2026-01-18 06:58:20 -06:00
parent 6799a84f65
commit 5e39fb1a1d
7 changed files with 43 additions and 33 deletions

View file

@ -3,7 +3,8 @@ appVersion: latest
description: SearXNG is a free internet metasearch engine which aggregates results from various search services and databases.
name: searxng
version: 1.0.1
dependencies:
- name: common
repository: https://library-charts.k8s-at-home.com
version: 4.4.2
#dependencies:
# - name: common
# repository: https://library-charts.k8s-at-home.com
# version: 4.4.2
#

View file

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

View file

@ -1,17 +0,0 @@
{{/* 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

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

View file

@ -0,0 +1,24 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: searxng
name: searxng
labels:
app: searxng
spec:
selector:
matchLabels:
app: searxng
replicas: 1
template:
metadata:
labels:
app: searxng
spec:
containers:
- name: searxng
image: registry.durp.info/searxng/searxng:latest
imagePullPolicy: Always
ports:
- name: http
containerPort: 8080

View file

@ -12,8 +12,8 @@ spec:
- name: authentik-proxy-provider
namespace: traefik
services:
- name: searxng
port: 3000
- name: searxng-service
port: 8080
tls:
secretName: searxng-tls

View file

@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: searxng-service
spec:
ports:
- name: http
port: 8080
targetPort: 8080
protocol: TCP
selector:
app: searxng