chore: remove support for open-webui due to ethical concerns

This commit is contained in:
Tommy 2024-08-14 06:52:01 +02:00
parent aad867646e
commit a8be0c9780
Signed by: tommy
SSH key fingerprint: SHA256:1LWgQT3QPHIT29plS8jjXc3S1FcE/4oGvsx3Efxs6Uc
5 changed files with 0 additions and 164 deletions

View file

@ -1,16 +0,0 @@
apiVersion: v2
name: open-webui
description: ChatGPT-Style Web UI Client for Ollama and more
type: application
version: 0.3.0
appVersion: "dev"
icon: https://avatars.githubusercontent.com/u/158137808?s=48&v=4
maintainers:
- name: Tommy Skaug
email: tommy@skaug.me
keywords:
- llm
- llama
- web
sources:
- https://docs.openwebui.com

View file

@ -1,69 +0,0 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "open-webui.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "open-webui.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "open-webui.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Get the correct image tag name
*/}}
{{- define "open-webui.imageTag" -}}
{{- .Values.image.tag | default (printf "%s" .Chart.AppVersion) -}}
{{- end -}}
{{/*
Common labels
*/}}
{{- define "open-webui.labels" -}}
helm.sh/chart: {{ include "open-webui.chart" . }}
{{ include "open-webui.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{/*
Selector labels
*/}}
{{- define "open-webui.selectorLabels" -}}
app.kubernetes.io/name: {{ include "open-webui.fullname" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{/*
Create the name of the service account to use
*/}}
{{- define "open-webui.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "open-webui.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}

View file

@ -1,44 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "open-webui.fullname" . }}
labels:
{{- include "open-webui.labels" . | nindent 4 }}
spec:
replicas: 1
selector:
matchLabels:
app: {{ include "open-webui.fullname" . }}
template:
metadata:
labels:
app: {{ include "open-webui.fullname" . }}
spec:
containers:
- name: {{ include "open-webui.fullname" . }}
image: {{ .Values.image.repository }}:{{ include "open-webui.imageTag" . }}
ports:
- containerPort: 8080
{{- if .Values.resources }}
resources: {{- toYaml .Values.resources | nindent 10 }}
{{- end }}
volumeMounts:
- name: web-volume
mountPath: /app/backend/data
env:
- name: OLLAMA_BASE_URL
value: {{ .Values.ollama.apiUrl }}
- name: OPENAI_API_BASE_URL
value: {{ .Values.openai.apiUrl }}
envFrom:
- secretRef:
name: {{ .Values.envFromSecret }}
tty: true
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
- name: web-volume
persistentVolumeClaim:
claimName: {{ .Values.persistence.existingClaim }}

View file

@ -1,14 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "open-webui.fullname" . }}-service
spec:
type: ClusterIP
selector:
app: {{ include "open-webui.fullname" . }}
ports:
- protocol: TCP
port: {{ .Values.servicePort }}
targetPort: {{ .Values.servicePort }}
# If using NodePort, you can optionally specify the nodePort:
# nodePort: 30000

View file

@ -1,21 +0,0 @@
replicaCount: 1
image:
repository: ghcr.io/open-webui/open-webui
tag: "dev"
ollama:
apiUrl: "http://ollama.llm.svc.cluster.local:11434/api"
openai:
apiUrl: "https://api.openai.com/v1/"
envFromSecret: open-webui-env
servicePort: 8080
resources:
limits:
cpu: "500m"
memory: "500Mi"
volumeSize: 1Gi
nodeSelector: {}
tolerations: []
service:
type: NodePort
persistence:
existingClaim: open-webui