--- apiVersion: apps/v1 kind: Deployment metadata: name: open-webui namespace: open-webui spec: replicas: 1 selector: matchLabels: app: open-webui strategy: type: Recreate template: metadata: annotations: reloader.stakater.com/auto: "true" labels: app: open-webui spec: containers: - name: open-webui image: ghcr.io/open-webui/open-webui:main imagePullPolicy: Always ports: - containerPort: 8080 name: http protocol: TCP env: - name: OPENAI_API_BASE_URL value: http://litellm-pooler.litellm.svc.cluster.local:4000 - name: WEBUI_URL value: https://chat.k8s.syd1.au.unkin.net envFrom: - secretRef: name: open-webui-credentials livenessProbe: httpGet: path: /health port: 8080 failureThreshold: 3 initialDelaySeconds: 30 periodSeconds: 30 successThreshold: 1 timeoutSeconds: 5 readinessProbe: httpGet: path: /health port: 8080 failureThreshold: 3 initialDelaySeconds: 10 periodSeconds: 10 successThreshold: 1 timeoutSeconds: 5 resources: limits: cpu: "2" memory: 4Gi requests: cpu: 250m memory: 512Mi volumeMounts: - mountPath: /app/backend/data name: data restartPolicy: Always volumes: - name: data persistentVolumeClaim: claimName: open-webui-data