Files
homelab/vpn/xui/k8s/xui.yaml
T
forust a6af69dca0
ci / lint-compose (push) Successful in 3s
ci / lint-actionlint (push) Successful in 1s
ci / lint-shellcheck (push) Successful in 2s
ci / lint-prettier (push) Successful in 3s
ci / lint-ruff (push) Successful in 1s
ci / lint-yaml (push) Successful in 2s
ci / lint-dockerfiles (push) Successful in 2s
ci / scan-deps (push) Successful in 18s
ci / test-backend (push) Successful in 8s
ci / test-frontend (push) Successful in 11s
ci / validate (push) Successful in 3s
renovate-ci / validate-renovate (push) Successful in 13s
ci / build (push) Successful in 1m30s
fix(k8s): Recreate singletons and trim requests for scheduler headroom
RollingUpdate with default maxSurge needs a spare pod the single node does not have (99% CPU requested), so multi-workload restarts end Pending and verify times out. Recreate on all replicas:1 Deployments (immich-server and bentopdf keep RollingUpdate at replicas 2). Also trims CPU/memory requests toward measured use (adguard, authentik, gitea, netbox, uptime-kuma, netbird-server) and gives traefik requests/limits so it is no longer BestEffort.
2026-09-28 22:36:46 +02:00

77 lines
1.4 KiB
YAML

apiVersion: v1
kind: Service
metadata:
name: xui-service
namespace: xui
spec:
selector:
app: xui
ports:
- port: 30379
name: panel
targetPort: 30379
- port: 10000
name: xray
targetPort: 10000
- port: 2096
name: sub
targetPort: 2096
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: xui-deployment
namespace: xui
spec:
replicas: 1
selector:
matchLabels:
app: xui
strategy:
type: Recreate
template:
metadata:
labels:
app: xui
spec:
containers:
- name: xui
image: ghcr.io/mhsanaei/3x-ui:v3.8.5
envFrom:
- configMapRef:
name: xui-config
tty: true
ports:
- containerPort: 30379
name: panel
- containerPort: 10000
name: xray
- containerPort: 2096
name: sub
volumeMounts:
- name: x-ui-db
mountPath: /etc/x-ui
resources:
requests:
memory: "192Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "1000m"
volumes:
- name: x-ui-db
persistentVolumeClaim:
claimName: xui-pvc
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: xui-pvc
namespace: xui
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi