diff --git a/charts/stable/ollama/Chart.yaml b/charts/stable/ollama/Chart.yaml index 829f6130737..7ded6cc9c08 100644 --- a/charts/stable/ollama/Chart.yaml +++ b/charts/stable/ollama/Chart.yaml @@ -36,4 +36,4 @@ sources: - https://hub.docker.com/r/ollama/ollama - https://ghcr.io/ollama-webui/ollama-webui type: application -version: 1.0.5 +version: 1.0.6 diff --git a/charts/stable/ollama/questions.yaml b/charts/stable/ollama/questions.yaml index 35173862ad2..39528cf981f 100644 --- a/charts/stable/ollama/questions.yaml +++ b/charts/stable/ollama/questions.yaml @@ -34,6 +34,28 @@ questions: type: int default: 10686 required: true + - variable: api + label: API Service + description: The API service. + schema: + additional_attrs: true + type: dict + attrs: +# Include{serviceSelectorLoadBalancer} +# Include{serviceSelectorExtras} + - variable: api + label: API Service Port Configuration + schema: + additional_attrs: true + type: dict + attrs: + - variable: port + label: Port + description: This port exposes the container port on the service + schema: + type: int + default: 11434 + required: true # Include{serviceExpertRoot} # Include{serviceExpert} # Include{serviceList} @@ -65,6 +87,16 @@ questions: # Include{ingressDefault} # Include{ingressTLS} # Include{ingressTraefik} +# Include{ingressAdvanced} + - variable: api + label: "API Ingress" + schema: + additional_attrs: true + type: dict + attrs: +# Include{ingressDefault} +# Include{ingressTLS} +# Include{ingressTraefik} # Include{ingressAdvanced} # Include{ingressList} # Include{securityContextRoot} diff --git a/charts/stable/ollama/values.yaml b/charts/stable/ollama/values.yaml index 80eb44d42d9..7a159705d04 100644 --- a/charts/stable/ollama/values.yaml +++ b/charts/stable/ollama/values.yaml @@ -18,15 +18,20 @@ service: targetSelector: ui api: enabled: true - type: ClusterIP targetSelector: main ports: api: enabled: true protocol: http + targetPort: 11434 port: 11434 targetSelector: main +ingress: + api: + targetSelector: + api: api + workload: main: podSpec: @@ -78,7 +83,7 @@ workload: type: tcp port: "{{ .Values.service.main.ports.main.targetPort }}" env: - OLLAMA_API_BASE_URL: '{{ printf "http://%v-api:%v/api" (include "tc.v1.common.lib.chart.names.fullname" $) .Values.service.api.ports.api.port }}' + OLLAMA_API_BASE_URL: '{{ printf "http://%v-api:%v/api" (include "tc.v1.common.lib.chart.names.fullname" $) .Values.service.api.ports.api.targetPort }}' persistence: config: