mirror of
https://gitlab.durp.info/durfy/homelab/gitops.git
synced 2026-05-10 01:01:27 -05:00
add searxng
This commit is contained in:
parent
04b638b8f9
commit
a6437bb109
7 changed files with 206 additions and 0 deletions
1
dmz/searxng/templates/NOTES.txt
Normal file
1
dmz/searxng/templates/NOTES.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
{{- include "common.notes.defaultNotes" . -}}
|
||||
17
dmz/searxng/templates/common.yaml
Normal file
17
dmz/searxng/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
dmz/searxng/templates/configmap.yaml
Normal file
11
dmz/searxng/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 }}
|
||||
45
dmz/searxng/templates/ingress.yaml
Normal file
45
dmz/searxng/templates/ingress.yaml
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: searxng-ingress
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`searxng.durp.info`) && PathPrefix(`/`)
|
||||
kind: Rule
|
||||
middlewares:
|
||||
- name: authentik-proxy-provider
|
||||
namespace: traefik
|
||||
services:
|
||||
- name: searxng
|
||||
port: 3000
|
||||
tls:
|
||||
secretName: searxng-tls
|
||||
|
||||
---
|
||||
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: searxng-tls
|
||||
spec:
|
||||
secretName: searxng-tls
|
||||
issuerRef:
|
||||
name: letsencrypt-production
|
||||
kind: ClusterIssuer
|
||||
commonName: "searxng.durp.info"
|
||||
dnsNames:
|
||||
- "searxng.durp.info"
|
||||
|
||||
---
|
||||
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: searxng-external-dns
|
||||
annotations:
|
||||
external-dns.alpha.kubernetes.io/hostname: searxng.durp.info
|
||||
spec:
|
||||
type: ExternalName
|
||||
externalName: durp.info
|
||||
Loading…
Add table
Add a link
Reference in a new issue