diff --git a/apps/children/openwebui.yaml b/apps/children/openwebui.yaml index 5259821..24cb13f 100644 --- a/apps/children/openwebui.yaml +++ b/apps/children/openwebui.yaml @@ -15,8 +15,41 @@ spec: chart: open-webui targetRevision: "*" helm: - valueFiles: - - apps/values/openwebui.yaml + values: | + image: + repository: ghcr.io/open-webui/open-webui + tag: "main" + pullPolicy: IfNotPresent + + service: + type: ClusterIP + + persistence: + enabled: true + size: 5Gi + + ingress: + enabled: true + className: nginx + hosts: + - host: openwebui.local + paths: + - path: / + pathType: Prefix + tls: [] + + # NO SECRETS!!! + extraEnvVars: + - name: OLLAMA_BASE_URL + value: "https://mlep.ion606.com" + - name: DATABASE_URL + value: "postgresql://postgres:mypassword@postgresql-primary.ai.svc.cluster.local:5432/openwebui" + - name: VECTOR_DB + value: "pgvector" + - name: PGVECTOR_DB_URL + value: "postgresql://postgres:mypassword@postgresql-primary.ai.svc.cluster.local:5432/openwebui" + - name: PGVECTOR_CREATE_EXTENSION + value: "true" syncPolicy: automated: prune: true diff --git a/apps/values/openwebui.yaml b/apps/values/openwebui.yaml index 25d2b50..b228c98 100644 --- a/apps/values/openwebui.yaml +++ b/apps/values/openwebui.yaml @@ -4,22 +4,21 @@ image: pullPolicy: IfNotPresent service: - type: NodePort # or ClusterIP if actually using ingress below - nodePort: 4000 + type: ClusterIP # use Ingress for external access persistence: enabled: true size: 5Gi ingress: - enabled: false # set true for http://openwebui.local via nginx + enabled: true # expose via nginx ingress className: nginx hosts: - host: openwebui.local paths: - path: / pathType: Prefix - tls: [] # no https bc I lazy + tls: [] # no https for local/minikube # NO SECRETS!!! extraEnvVars: diff --git a/manifests/argo-schedules-api/ingress.yaml b/manifests/argo-schedules-api/ingress.yaml new file mode 100644 index 0000000..959a494 --- /dev/null +++ b/manifests/argo-schedules-api/ingress.yaml @@ -0,0 +1,18 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: ollama-scheduler + namespace: argo +spec: + ingressClassName: nginx + rules: + - host: scheduler.local + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: ollama-scheduler + port: + number: 12253