From d7a0e9fbeafb2ffaed6eb8cb1f3177e04df42625 Mon Sep 17 00:00:00 2001 From: Jose Henrique Date: Fri, 10 Apr 2026 13:33:24 -0300 Subject: [PATCH] adding openwebui --- README.md | 1 + default/openwebui.yaml | 90 ++++++++++++++++++++++++++++++++++++++++++ default/searxng.yaml | 8 ++++ 3 files changed, 99 insertions(+) create mode 100644 default/openwebui.yaml diff --git a/README.md b/README.md index 0bd2bc7..32f708a 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ The repository name references my local TLD, `.haven` ;) - Searxng - Uptimekuma - Vaultwarden + - OpenWebUI - dns - AdGuardHome - AdGuardHome-2 (2nd instance) diff --git a/default/openwebui.yaml b/default/openwebui.yaml new file mode 100644 index 0000000..fd99d4c --- /dev/null +++ b/default/openwebui.yaml @@ -0,0 +1,90 @@ +# 1) Deployment +apiVersion: apps/v1 +kind: Deployment +metadata: + name: openwebui + namespace: default +spec: + replicas: 1 + selector: + matchLabels: + app: openwebui + template: + metadata: + labels: + app: openwebui + spec: + containers: + - name: openwebui + image: ghcr.io/open-webui/open-webui:main-slim + imagePullPolicy: Always + ports: + - containerPort: 8080 + resources: + requests: + cpu: "250m" + memory: "512Mi" + limits: + cpu: "1000m" + memory: "1Gi" + volumeMounts: + - name: openwebui-data + mountPath: /app/backend/data + volumes: + - name: openwebui-data + persistentVolumeClaim: + claimName: openwebui-data +--- +# 2) Service +apiVersion: v1 +kind: Service +metadata: + name: openwebui + namespace: default +spec: + type: ClusterIP + selector: + app: openwebui + ports: + - port: 8080 + targetPort: 8080 +--- +# 3) PersistentVolumeClaim +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: openwebui-data + namespace: default + annotations: + nfs.io/storage-path: "openwebui-data" +spec: + storageClassName: "nfs-client" + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 5Gi + limits: + storage: 10Gi +--- +# 4) Ingress +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: openwebui + namespace: default + annotations: + nginx.ingress.kubernetes.io/proxy-body-size: "50m" +spec: + ingressClassName: nginx + rules: + - host: openwebui.haven + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: openwebui + port: + number: 8080 \ No newline at end of file diff --git a/default/searxng.yaml b/default/searxng.yaml index 7a909c4..21a4b46 100644 --- a/default/searxng.yaml +++ b/default/searxng.yaml @@ -15,6 +15,7 @@ spec: labels: app: searxng spec: + enableServiceLinks: false containers: - name: searxng image: searxng/searxng:latest @@ -27,6 +28,13 @@ spec: ports: - containerPort: 8080 name: searxng-port + resources: + requests: + cpu: "100m" + memory: "256Mi" + limits: + cpu: "500m" + memory: "512Mi" volumeMounts: - name: searxng-config mountPath: /etc/searxng