webui-deployment.yaml 893 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: open-webui-deployment
  5. namespace: open-webui
  6. spec:
  7. replicas: 1
  8. selector:
  9. matchLabels:
  10. app: open-webui
  11. template:
  12. metadata:
  13. labels:
  14. app: open-webui
  15. spec:
  16. containers:
  17. - name: open-webui
  18. image: ghcr.io/open-webui/open-webui:main
  19. ports:
  20. - containerPort: 8080
  21. resources:
  22. requests:
  23. cpu: "500m"
  24. memory: "500Mi"
  25. limits:
  26. cpu: "1000m"
  27. memory: "1Gi"
  28. env:
  29. - name: OLLAMA_BASE_URL
  30. value: "http://ollama-service.open-webui.svc.cluster.local:11434"
  31. tty: true
  32. volumeMounts:
  33. - name: webui-volume
  34. mountPath: /app/backend/data
  35. volumes:
  36. - name: webui-volume
  37. persistentVolumeClaim:
  38. claimName: ollama-webui-pvc