osc-open-webui
Helm chartv0.13.1App 0.1.0
OSC Open Web UI deployment
About this chart
osc-open-webui
OSC Open Web UI deployment
Maintainers
| Name | Url | |
|---|---|---|
| treydock |
Requirements
| Repository | Name | Version |
|---|---|---|
| https://osc.github.io/osc-helm-charts/ | osc-common | 0.15.1 |
| https://osc.github.io/osc-helm-charts | database | 0.21.1 |
| oci://docker-registry.osc.edu/kubernetes/open-webui | open-webui | 17.1.0-osc-r1 |
Usage
Define necessary values:
global:
oscServiceAccount: testuser
imagePullSecret:
password: SECRET
ingress:
host: testuser.k8.osc.edu
hostAlias: testuser.osc.edu
auth:
allowGroups:
- group
alert:
receiver:
maintenanceGroups:
- group
webui_secret_key: SECRET
open-webui:
sso:
enableRoleManagement: true
ollama:
ollama:
gpu:
nvidiaResource: nvidia.com/mig-7g.40gb
deployment:
labels:
osc.edu/service-account: testuser
podLabels:
osc.edu/service-account: testuser
extraEnvVars:
- name: CONFIG_ITEM
value: "False"
volumes:
- name: data
hostPath:
path: /fs/ess/PROJECT
type: Directory
- name: home
hostPath:
path: /users/PROJECT/USER
type: Directory
To add PostgreSQL and Redis to the base settings:
global:
fileset: <storage fileset>
database:
enable: true
postgresql:
auth:
postgresPassword: <postgres user password>
password: <openwebui user password>
redis:
password: <redis password>
database:
redis:
master:
persistence:
annotations:
osc.edu/fileset: <must match global.fileset>
open-webui:
websocket:
enabled: true
Below is an example of PAAS usage:
---
global:
oscServiceAccount: <USERNAME>
imagePullSecret:
create: false
ingress:
host: <USERNAME>.k8.osc.edu
annotations:
# Limit to OH-TECH VPN
nginx.ingress.kubernetes.io/whitelist-source-range: '<OH-TECH VPN>'
auth:
allowGroups:
- oscstaff
# Generate from the command 'uuidgen'
webui_secret_key: <SECRET>
open-webui:
persistence:
storageClass: paas-nfs-client
sso:
enableRoleManagement: true
ollama:
ollama:
models:
pull:
- <model to pull>
run:
- <model to pull>
nodeSelector:
# Set MIG
# One of
# - NVIDIA-A100-PCIE-40GB-MIG-1g.5gb
# - NVIDIA-A100-PCIE-40GB-MIG-3g.20gb
# - NVIDIA-A100-PCIE-40GB-MIG-7g.40gb
nvidia.com/gpu.product: <MIG>
volumes:
- name: data
hostPath:
path: /fs/scratch/<Primary group>/<Username>
type: Directory
- name: home
hostPath:
path: /users/<Primary group>/<Username>
type: Directory
Values
| Key | Description | Default |
|---|---|---|
| global.oscServiceAccount | The service account used by OSC deployments. Also pulled from global.env..serviceAccount | "" |
| global.environment | The deployment's OSC environment | "production" |
| global.nodeSelectorRole | The nodeSelector role | "webservices" |
| global.imagePullSecret.create | Create the image pull secret | true |
| global.imagePullSecret.name | image pull secret name | "osc-registry" |
| global.imagePullSecret.registry | OSC registry address | "docker-registry.osc.edu" |
| global.imagePullSecret.password | The image pull secret password for database images | required |
| global.networkPolicy.create | Create the network policy | false |
| global.networkPolicy.podSelector | Labels for NetworkPolicy podSelector. Defaults to "osc.common.selectorLabels" | nil |
| global.networkPolicy.ingressAllowedPods | Labels of pods allowed to Ingress from the same namespace | [] |
| global.debugGroups | Groups that debug pods | [] |
| global.maintenanceGroups | Groups that can perform maintenance operations | [] |
| global.portforwardGroups | Groups that are allowed to perform port forwarding | [] |
| global.webservicesDeploy.create | Create webservices deployment rolebinding | true |
| global.ingress.host | Ingress host | required |
| global.ingress.hostAlias | Ingress host alias | required |
| global.ingress.additionalHosts | Ingress additional hosts | [] |
| global.ingress.annotations | Additional Ingress annotations for the Ingress resource | nil |
| global.auth.redirectUris | Additional redirect URIs | [] |
| global.auth.allowGroups | Restrict access to these groups | [] |
| global.alert.receiver | The alert receiver | nil |
| global.webui_secret_key | The Open WebUI secret key | required |
| global.storageClass | Storage class for persistence | "webservices-nfs-client" |
| global.fileset | The storage fileset | nil |
| global.otel.image.tag | The otel collector tag, must be replicated to OSC | "0.161.0" |
| global.database.enable | Enable database support | false |
| global.database.pool.size | Open WebUI database pool size | 25 |
| global.database.pool.maxOverflow | Open WebUI database pool max overflow | 20 |
| global.postgresql.auth.postgresPassword | postgres password | nil |
| global.postgresql.auth.password | openwebui user password | nil |
| global.postgresql.maxConnections | Max PostgreSQL connections | 200 |
| global.redis.password | Redis password | nil |
| global.redis.maxclients | Redis max clients | 10000 |
| global.redis.timeout | Redis client timeout | 1800 |
| scaling.enabled | Enable auto scaling Requires enabling database | false |
| scaling.maxReplicas | Max number of replicas | Based on database connection pools and max database connections |
| scaling.prometheusURL | Prometheus URL | "http://prometheus-prometheus.prometheus.svc:9090" |
| scaling.scaleDown.stabilizationWindowSeconds | HPA scale down stabilizationWindowSeconds | 600 |
| scaling.scaleUp.stabilizationWindowSeconds | HPA scale up stabilizationWindowSeconds | 0 |
| scaling.triggers | Scaling triggers | [] |
| podMonitor.relabelings | Additional relabelings | [] |
| podMonitor.metricRelabelings | Additional metric relabelings | [] |
| ollama.networkPolicy.allowedPodLabels | Array of additional pod labels to allow | [] |
| database.redis.master.persistence.annotations."osc.edu/fileset" | Fileset for Redis storage | "PZS0645" |
| open-webui.websocket.enabled | Enable web sockets. required when using databases | false |
| open-webui.image.repository | OSC registry location for Open WebUI image | "docker-registry.osc.edu/kubernetes/open-webui/open-webui" |
| open-webui.image.tag | The Open WebUI image tag. Must be synced to OSC registry | "osc-0.12.5-r0-slim-build0" |
| open-webui.resources.limits.memory | Open WebUI pod memory limit | "4Gi" |
| open-webui.resources.limits.cpu | Open WebUI pod CPU limit | 2 |
| open-webui.resources.requests.memory | Open WebUI pod memory request | "2Gi" |
| open-webui.resources.requests.cpu | Open WebUI pod CPU request | 1 |
| open-webui.extraEnvVars | Additional Open WebUI environment variables | [] |
| open-webui.sso.enableRoleManagement | Enables role access controls in Open WebUI | false |
| open-webui.ollama.image.repository | "docker-registry.osc.edu/kubernetes/ollama/ollama" | |
| open-webui.ollama.image.tag | "0.16.1" | |
| open-webui.ollama.imagePullSecrets[0].name | "osc-registry" | |
| open-webui.ollama.ollama.gpu.enabled | true | |
| open-webui.ollama.ollama.gpu.type | "nvidia" | |
| open-webui.ollama.ollama.gpu.number | 1 | |
| open-webui.ollama.service.annotations."prometheus.io/probe_module" | "http" | |
| open-webui.ollama.service.annotations."prometheus.io/probe_scheme" | "http" | |
| open-webui.ollama.deployment.labels | {} | |
| open-webui.ollama.podLabels | {} | |
| open-webui.ollama.podSecurityContext.runAsNonRoot | true | |
| open-webui.ollama.securityContext.allowPrivilegeEscalation | false | |
| open-webui.ollama.securityContext.capabilities.drop[0] | "ALL" | |
| open-webui.ollama.securityContext.seccompProfile.type | "RuntimeDefault" | |
| open-webui.ollama.securityContext.privileged | false | |
| open-webui.ollama.resources.limits.memory | "16Gi" | |
| open-webui.ollama.resources.limits.cpu | 8 | |
| open-webui.ollama.resources.requests.memory | "4Gi" | |
| open-webui.ollama.resources.requests.cpu | 2 | |
| open-webui.ollama.volumes | [] | |
| open-webui.ollama.volumeMounts[0].name | "data" | |
| open-webui.ollama.volumeMounts[0].mountPath | "/data" | |
| open-webui.ollama.volumeMounts[0].subPath | "ollama-models" | |
| open-webui.ollama.volumeMounts[1].name | "home" | |
| open-webui.ollama.volumeMounts[1].mountPath | "/home/ollama" | |
| open-webui.ollama.volumeMounts[1].subPath | "ollama-home" | |
| open-webui.ollama.extraEnv[0].name | "OLLAMA_MODELS" | |
| open-webui.ollama.extraEnv[0].value | "/data" | |
| open-webui.ollama.extraEnv[1].name | "HOME" | |
| open-webui.ollama.extraEnv[1].value | "/home/ollama" | |
| open-webui.ollama.extraEnv[2].name | "OLLAMA_FLASH_ATTENTION" | |
| open-webui.ollama.extraEnv[2].value | "1" | |
| oscCommon.enable | Enable the osc-common dependency | true |
Deploy osc-open-webui with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has osc-open-webui on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartosc-open-webui is pinned at v0.13.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply