Compare commits
3 Commits
29e3470e39
...
a612fcc775
| Author | SHA1 | Date | |
|---|---|---|---|
| a612fcc775 | |||
| d7a0e9fbea | |||
| 2182754eee |
@@ -22,6 +22,7 @@ The repository name references my local TLD, `.haven` ;)
|
|||||||
- Searxng
|
- Searxng
|
||||||
- Uptimekuma
|
- Uptimekuma
|
||||||
- Vaultwarden
|
- Vaultwarden
|
||||||
|
- OpenWebUI
|
||||||
- dns
|
- dns
|
||||||
- AdGuardHome
|
- AdGuardHome
|
||||||
- AdGuardHome-2 (2nd instance)
|
- AdGuardHome-2 (2nd instance)
|
||||||
|
|||||||
90
default/openwebui.yaml
Normal file
90
default/openwebui.yaml
Normal 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
|
||||||
@@ -15,6 +15,7 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: searxng
|
app: searxng
|
||||||
spec:
|
spec:
|
||||||
|
enableServiceLinks: false
|
||||||
containers:
|
containers:
|
||||||
- name: searxng
|
- name: searxng
|
||||||
image: searxng/searxng:latest
|
image: searxng/searxng:latest
|
||||||
@@ -27,6 +28,13 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
name: searxng-port
|
name: searxng-port
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: "100m"
|
||||||
|
memory: "256Mi"
|
||||||
|
limits:
|
||||||
|
cpu: "500m"
|
||||||
|
memory: "512Mi"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: searxng-config
|
- name: searxng-config
|
||||||
mountPath: /etc/searxng
|
mountPath: /etc/searxng
|
||||||
|
|||||||
@@ -81,6 +81,13 @@ spec:
|
|||||||
- name: gitea-runner
|
- name: gitea-runner
|
||||||
image: gitea/act_runner:latest
|
image: gitea/act_runner:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: "500m"
|
||||||
|
memory: "512Mi"
|
||||||
|
limits:
|
||||||
|
cpu: "4000m"
|
||||||
|
memory: "4Gi"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
mountPath: /etc/gitea-runner/config.yaml
|
mountPath: /etc/gitea-runner/config.yaml
|
||||||
@@ -141,6 +148,13 @@ spec:
|
|||||||
- name: gitea-runner
|
- name: gitea-runner
|
||||||
image: gitea/act_runner:latest
|
image: gitea/act_runner:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: "500m"
|
||||||
|
memory: "512Mi"
|
||||||
|
limits:
|
||||||
|
cpu: "4000m"
|
||||||
|
memory: "4Gi"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
mountPath: /etc/gitea-runner/config.yaml
|
mountPath: /etc/gitea-runner/config.yaml
|
||||||
|
|||||||
4
docker-ingress/README.md
Normal file
4
docker-ingress/README.md
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
## Create namespace
|
||||||
|
```bash
|
||||||
|
kubectl create namespace docker-ingress
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user