diff --git a/charts/dev/ollama/.helmignore b/charts/dev/ollama/.helmignore new file mode 100644 index 00000000000..77ca5567b26 --- /dev/null +++ b/charts/dev/ollama/.helmignore @@ -0,0 +1,30 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ +# OWNERS file for Kubernetes +OWNERS +# helm-docs templates +*.gotmpl +# docs folder +/docs +# icon +icon.png diff --git a/charts/dev/ollama/CHANGELOG.md b/charts/dev/ollama/CHANGELOG.md new file mode 100644 index 00000000000..825c32f0d03 --- /dev/null +++ b/charts/dev/ollama/CHANGELOG.md @@ -0,0 +1 @@ +# Changelog diff --git a/charts/dev/ollama/Chart.yaml b/charts/dev/ollama/Chart.yaml new file mode 100644 index 00000000000..c6faf12c335 --- /dev/null +++ b/charts/dev/ollama/Chart.yaml @@ -0,0 +1,38 @@ +kubeVersion: ">=1.24.0-0" +apiVersion: v2 +name: ollama +version: 0.0.1 +appVersion: 0.1.18 +description: Get up and running with large language models locally. +home: https://truecharts.org/charts/dev/ollama +icon: https://truecharts.org/img/hotlink-ok/chart-icons/ollama.png +deprecated: false +sources: + - https://github.com/truecharts/charts/tree/master/charts/incubator/ollama + - https://github.com/jmorganca/ollama + - https://hub.docker.com/r/ollama/ollama + - https://github.com/ollama-webui/ollama-webui +maintainers: + - name: TrueCharts + email: info@truecharts.org + url: https://truecharts.org +keywords: + - ollama + - language-models +dependencies: + - name: common + version: 17.2.21 + repository: https://library-charts.truecharts.org + condition: "" + alias: "" + tags: [] + import-values: [] +annotations: + max_scale_version: 23.10.2 + min_scale_version: 23.10.0 + truecharts.org/SCALE-support: "true" + truecharts.org/category: ai + truecharts.org/max_helm_version: "3.13" + truecharts.org/min_helm_version: "3.12" + truecharts.org/train: incubator +type: application diff --git a/charts/dev/ollama/README.md b/charts/dev/ollama/README.md new file mode 100644 index 00000000000..7e59600739c --- /dev/null +++ b/charts/dev/ollama/README.md @@ -0,0 +1 @@ +# README diff --git a/charts/dev/ollama/icon.png b/charts/dev/ollama/icon.png new file mode 100644 index 00000000000..c7c3a1b3873 Binary files /dev/null and b/charts/dev/ollama/icon.png differ diff --git a/charts/dev/ollama/questions.yaml b/charts/dev/ollama/questions.yaml new file mode 100644 index 00000000000..35173862ad2 --- /dev/null +++ b/charts/dev/ollama/questions.yaml @@ -0,0 +1,100 @@ +# Include{groups} +portals: + open: +# Include{portalLink} +questions: +# Include{global} +# Include{workload} +# Include{workloadDeployment} + +# Include{replicas1} +# Include{podSpec} +# Include{containerMain} + + +# Include{containerBasic} +# Include{containerAdvanced} + +# Include{containerConfig} +# Include{podOptions} +# Include{serviceRoot} +# Include{serviceMain} +# Include{serviceSelectorLoadBalancer} +# Include{serviceSelectorExtras} + - variable: main + label: "Main 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: 10686 + required: true +# Include{serviceExpertRoot} +# Include{serviceExpert} +# Include{serviceList} +# Include{persistenceRoot} + - variable: config + label: "App Config Storage" + description: "Stores the Application Configuration." + schema: + additional_attrs: true + type: dict + attrs: +# Include{persistenceBasic} + - variable: data + label: "App Data Storage" + description: "Stores the Application Data." + schema: + additional_attrs: true + type: dict + attrs: +# Include{persistenceBasic} +# Include{persistenceList} +# Include{ingressRoot} + - variable: main + label: "Main Ingress" + schema: + additional_attrs: true + type: dict + attrs: +# Include{ingressDefault} +# Include{ingressTLS} +# Include{ingressTraefik} +# Include{ingressAdvanced} +# Include{ingressList} +# Include{securityContextRoot} + + - variable: runAsUser + label: "runAsUser" + description: "The UserID of the user running the application" + schema: + type: int + default: 0 + - variable: runAsGroup + label: "runAsGroup" + description: "The groupID of the user running the application" + schema: + type: int + default: 0 +# Include{securityContextContainer} +# Include{securityContextAdvanced} +# Include{securityContextPod} + - variable: fsGroup + label: "fsGroup" + description: "The group that should own ALL storage." + schema: + type: int + default: 568 + +# Include{resources} +# Include{advanced} +# Include{addons} +# Include{codeserver} +# Include{netshoot} +# Include{vpn} +# Include{documentation} diff --git a/charts/dev/ollama/templates/NOTES.txt b/charts/dev/ollama/templates/NOTES.txt new file mode 100644 index 00000000000..efcb74cb772 --- /dev/null +++ b/charts/dev/ollama/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "tc.v1.common.lib.chart.notes" $ -}} diff --git a/charts/dev/ollama/templates/common.yaml b/charts/dev/ollama/templates/common.yaml new file mode 100644 index 00000000000..b51394e00a4 --- /dev/null +++ b/charts/dev/ollama/templates/common.yaml @@ -0,0 +1 @@ +{{ include "tc.v1.common.loader.all" . }} diff --git a/charts/dev/ollama/values.yaml b/charts/dev/ollama/values.yaml new file mode 100644 index 00000000000..ec26e7058d5 --- /dev/null +++ b/charts/dev/ollama/values.yaml @@ -0,0 +1,99 @@ +image: + repository: ollama/ollama + pullPolicy: IfNotPresent + tag: 0.1.18@sha256:5327f8c3f43e30804dbdbc039e8fcf253af8291e149f186dc5c7733f68e29217 +uiImage: + repository: ghcr.io/ollama-webui/ollama-webui + pullPolicy: IfNotPresent + tag: main@sha256:50dfa1104ae2f5c450bdc23920bc503a3cecd50f02efa328df98c317f8552e6c + +service: + main: + targetSelector: ui + ports: + main: + protocol: http + targetPort: 8080 + port: 10686 + targetSelector: ui + api: + enabled: true + type: ClusterIP + targetSelector: main + ports: + api: + enabled: true + protocol: http + port: 11434 + targetSelector: main + +workload: + main: + podSpec: + containers: + main: + imageSelector: image + securityContext: + runAsUser: 0 + runAsGroup: 0 + runAsNonRoot: false + readOnlyRootFilesystem: false + probes: + liveness: + enabled: true + type: http + path: /api/version + port: "{{ .Values.service.api.ports.api.port }}" + readiness: + enabled: true + type: http + path: /api/version + port: "{{ .Values.service.api.ports.api.port }}" + startup: + enabled: true + type: tcp + port: "{{ .Values.service.api.ports.api.port }}" + ui: + enabled: true + type: Deployment + podSpec: + containers: + ui: + primary: true + enabled: true + imageSelector: uiImage + probes: + liveness: + enabled: true + type: http + path: / + port: "{{ .Values.service.main.ports.main.targetPort }}" + readiness: + enabled: true + type: http + path: / + port: "{{ .Values.service.main.ports.main.targetPort }}" + startup: + enabled: true + type: tcp + port: "{{ .Values.service.main.ports.main.targetPort }}" + env: + OLLAMA_API_BASE_URL: '{{ printf "http://%v:%v/api" (include "tc.v1.common.lib.chart.names.fullname" $) .Values.service.api.ports.api.port }}' + +persistence: + config: + enabled: true + targetSelector: + main: + main: + mountPath: "/root/.ollama" + data: + enabled: true + targetSelector: + ui: + ui: + mountPath: "/app/backend/data" + +portal: + open: + enabled: true