diff --git a/charts/incubator/ai-server/.helmignore b/charts/incubator/ai-server/.helmignore new file mode 100644 index 00000000000..77ca5567b26 --- /dev/null +++ b/charts/incubator/ai-server/.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/incubator/ai-server/CHANGELOG.md b/charts/incubator/ai-server/CHANGELOG.md new file mode 100644 index 00000000000..6afbcc5f802 --- /dev/null +++ b/charts/incubator/ai-server/CHANGELOG.md @@ -0,0 +1,3 @@ +--- +title: Changelog +--- diff --git a/charts/incubator/ai-server/Chart.yaml b/charts/incubator/ai-server/Chart.yaml new file mode 100644 index 00000000000..94be8343dc3 --- /dev/null +++ b/charts/incubator/ai-server/Chart.yaml @@ -0,0 +1,37 @@ +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.14" + truecharts.org/min_helm_version: "3.12" + truecharts.org/train: incubator +apiVersion: v2 +appVersion: 2.5.1 +dependencies: + - name: common + version: 17.2.29 + repository: oci://tccr.io/truecharts + condition: "" + alias: "" + tags: [] + import-values: [] +deprecated: false +description: A standalone, self-hosted, fast, free and Open Source Artificial Intelligence microserver for any platform, any language. +home: https://truecharts.org/charts/incubator/ai-server +icon: https://truecharts.org/img/hotlink-ok/chart-icons/ai-server.png +keywords: + - ai-server + - sense-ai +kubeVersion: ">=1.24.0-0" +maintainers: + - name: TrueCharts + email: info@truecharts.org + url: https://truecharts.org +name: ai-server +sources: + - https://github.com/codeproject/CodeProject.AI-Server + - https://github.com/truecharts/charts/tree/master/charts/incubator/ai-server + - https://hub.docker.com/r/codeproject/ai-server +type: application +version: 0.0.1 diff --git a/charts/incubator/ai-server/README.md b/charts/incubator/ai-server/README.md new file mode 100644 index 00000000000..2b8cc49d247 --- /dev/null +++ b/charts/incubator/ai-server/README.md @@ -0,0 +1,3 @@ +--- +title: README +--- diff --git a/charts/incubator/ai-server/ci/base-values.yaml b/charts/incubator/ai-server/ci/base-values.yaml new file mode 100644 index 00000000000..7e36603e844 --- /dev/null +++ b/charts/incubator/ai-server/ci/base-values.yaml @@ -0,0 +1 @@ +imageSelector: image diff --git a/charts/incubator/ai-server/ci/gpu11-values.yaml b/charts/incubator/ai-server/ci/gpu11-values.yaml new file mode 100644 index 00000000000..e65b0c15568 --- /dev/null +++ b/charts/incubator/ai-server/ci/gpu11-values.yaml @@ -0,0 +1 @@ +imageSelector: gpu11Image diff --git a/charts/incubator/ai-server/ci/gpu12-values.yaml b/charts/incubator/ai-server/ci/gpu12-values.yaml new file mode 100644 index 00000000000..36d0f1b3ec8 --- /dev/null +++ b/charts/incubator/ai-server/ci/gpu12-values.yaml @@ -0,0 +1 @@ +imageSelector: gpu12Image diff --git a/charts/incubator/ai-server/icon.png b/charts/incubator/ai-server/icon.png new file mode 100644 index 00000000000..ef66313f7ef Binary files /dev/null and b/charts/incubator/ai-server/icon.png differ diff --git a/charts/incubator/ai-server/questions.yaml b/charts/incubator/ai-server/questions.yaml new file mode 100644 index 00000000000..0f62978fb7a --- /dev/null +++ b/charts/incubator/ai-server/questions.yaml @@ -0,0 +1,110 @@ +# Include{groups} +portals: + open: +# Include{portalLink} +questions: +# Include{global} +# Include{workload} +# Include{workloadDeployment} +# Include{replicas1} +# Include{podSpec} +# Include{containerMain} + - variable: imageSelector + label: Select Image + schema: + type: string + default: image + enum: + - value: image + description: Default (CPU) + - value: gpu12Image + description: CUDA 12 (Nvidia GPUs) image + - value: gpu11Image + description: CUDA 11 (Nvidia GPUs) image +# Include{containerBasic} +# Include{containerAdvanced} +# Include{containerConfig} +# Include{podOptions} +# Include{serviceRoot} + - variable: main + label: "Main Service" + description: "The Primary service on which the healthcheck runs, often the webUI" + schema: + additional_attrs: true + type: dict + attrs: +# 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: 32168 + required: true +# Include{serviceExpertRoot} +# Include{serviceExpert} +# Include{serviceList} +# Include{persistenceRoot} + - variable: data + label: "App Data Storage" + description: "Stores the Application Data." + schema: + additional_attrs: true + type: dict + attrs: +# Include{persistenceBasic} + - variable: downloads + label: App Modules Storage + description: Stores the App Modules or Downloads + 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{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/incubator/ai-server/templates/common.yaml b/charts/incubator/ai-server/templates/common.yaml new file mode 100644 index 00000000000..b51394e00a4 --- /dev/null +++ b/charts/incubator/ai-server/templates/common.yaml @@ -0,0 +1 @@ +{{ include "tc.v1.common.loader.all" . }} diff --git a/charts/incubator/ai-server/values.yaml b/charts/incubator/ai-server/values.yaml new file mode 100644 index 00000000000..0cc577cd7c2 --- /dev/null +++ b/charts/incubator/ai-server/values.yaml @@ -0,0 +1,46 @@ +image: + pullPolicy: IfNotPresent + repository: codeproject/ai-server + tag: cpu-2.5.1@sha256:4ac7e0ace01abdb26e6d1876011a95f9f294352abd23936e4c6040f23582ed9f +gpu12Image: + pullPolicy: IfNotPresent + repository: codeproject/ai-server + tag: cuda12_2-2.5.1@sha256:c846c67adb140912ff344a7ba57b3498019d18dfeaf70a32ab68ff389db74efd +gpu11Image: + pullPolicy: IfNotPresent + repository: codeproject/ai-server + tag: cuda11_7-2.5.1@sha256:b48a17af31d10b839baaa07495449bb185493e0d90d88520bd6d6339e6a168cf + +securityContext: + container: + runAsNonRoot: false + readOnlyRootFilesystem: false + runAsUser: 0 + runAsGroup: 0 + +service: + main: + ports: + main: + port: 32168 + targetPort: 32168 + +workload: + main: + podSpec: + containers: + main: + imageSelector: image + +persistence: + data: + enabled: true + mountPath: /etc/codeproject/ai + downloads: + enabled: true + mountPath: /app/modules + +portal: + open: + enabled: true +