diff --git a/dmz/searxng/Chart.yaml b/dmz/searxng/Chart.yaml index 6d8990f..263432f 100644 --- a/dmz/searxng/Chart.yaml +++ b/dmz/searxng/Chart.yaml @@ -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 +# \ No newline at end of file diff --git a/dmz/searxng/templates/NOTES.txt b/dmz/searxng/templates/NOTES.txt deleted file mode 100644 index 90f7b65..0000000 --- a/dmz/searxng/templates/NOTES.txt +++ /dev/null @@ -1 +0,0 @@ -{{- include "common.notes.defaultNotes" . -}} diff --git a/dmz/searxng/templates/common.yaml b/dmz/searxng/templates/common.yaml deleted file mode 100644 index f8490f9..0000000 --- a/dmz/searxng/templates/common.yaml +++ /dev/null @@ -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" . }} \ No newline at end of file diff --git a/dmz/searxng/templates/configmap.yaml b/dmz/searxng/templates/configmap.yaml deleted file mode 100644 index c0b5155..0000000 --- a/dmz/searxng/templates/configmap.yaml +++ /dev/null @@ -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 }} -# \ No newline at end of file diff --git a/dmz/searxng/templates/deployment.yaml b/dmz/searxng/templates/deployment.yaml new file mode 100644 index 0000000..3ab2d47 --- /dev/null +++ b/dmz/searxng/templates/deployment.yaml @@ -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 \ No newline at end of file diff --git a/dmz/searxng/templates/ingress.yaml b/dmz/searxng/templates/ingress.yaml index 8093211..da757e7 100644 --- a/dmz/searxng/templates/ingress.yaml +++ b/dmz/searxng/templates/ingress.yaml @@ -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 diff --git a/dmz/searxng/templates/service.yaml b/dmz/searxng/templates/service.yaml new file mode 100644 index 0000000..8498428 --- /dev/null +++ b/dmz/searxng/templates/service.yaml @@ -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