webui-deployment.yaml 1.03 KB
Newer Older
1
2
3
apiVersion: apps/v1
kind: Deployment
metadata:
duhow's avatar
duhow committed
4
  name: {{ include "open-webui.name" . }}
5
6
7
8
spec:
  replicas: 1
  selector:
    matchLabels:
Bjørn Jørgensen's avatar
Bjørn Jørgensen committed
9
      app: open-webui
10
11
12
  template:
    metadata:
      labels:
Bjørn Jørgensen's avatar
Bjørn Jørgensen committed
13
        app: open-webui
14
15
    spec:
      containers:
duhow's avatar
duhow committed
16
      - name: {{ .Chart.Name }}
17
        image: {{ .Values.webui.image }}
18
19
        ports:
        - containerPort: 8080
20
21
22
23
24
25
        {{- if .Values.webui.resources }}
        resources: {{- toYaml .Values.webui.resources | nindent 10 }}
        {{- end }}
        volumeMounts:
        - name: webui-volume
          mountPath: /app/backend/data
26
27
        env:
        - name: OLLAMA_API_BASE_URL
duhow's avatar
duhow committed
28
          value: {{ printf "http://%s.%s.svc.cluster.local:%s/api" (include "ollama.name" .) (.Release.Namespace) (.Values.ollama.servicePort) | quote }}
29
30
31
32
33
34
35
36
        tty: true
      {{- with .Values.webui.nodeSelector }}
      nodeSelector:
        {{- toYaml . | nindent 8 }}
      {{- end }}
      volumes:
      - name: webui-volume
        persistentVolumeClaim:
duhow's avatar
duhow committed
37
          claimName: {{ include "open-webui.name" . }}