Compare commits

..

3 Commits

Author SHA1 Message Date
a612fcc775 adding resource limts 2026-04-10 13:33:57 -03:00
d7a0e9fbea adding openwebui 2026-04-10 13:33:24 -03:00
2182754eee adding readme 2026-03-16 19:26:33 -03:00
5 changed files with 117 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ The repository name references my local TLD, `.haven` ;)
- Searxng
- Uptimekuma
- Vaultwarden
- OpenWebUI
- dns
- AdGuardHome
- AdGuardHome-2 (2nd instance)

90
default/openwebui.yaml Normal file
View File

@@ -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

View File

@@ -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

View File

@@ -81,6 +81,13 @@ spec:
- name: gitea-runner
image: gitea/act_runner:latest
imagePullPolicy: Always
resources:
requests:
cpu: "500m"
memory: "512Mi"
limits:
cpu: "4000m"
memory: "4Gi"
volumeMounts:
- name: config-volume
mountPath: /etc/gitea-runner/config.yaml
@@ -141,6 +148,13 @@ spec:
- name: gitea-runner
image: gitea/act_runner:latest
imagePullPolicy: Always
resources:
requests:
cpu: "500m"
memory: "512Mi"
limits:
cpu: "4000m"
memory: "4Gi"
volumeMounts:
- name: config-volume
mountPath: /etc/gitea-runner/config.yaml

4
docker-ingress/README.md Normal file
View File

@@ -0,0 +1,4 @@
## Create namespace
```bash
kubectl create namespace docker-ingress
```