From e3ea938b1a8a2257a9867cd5b9308a96cc386d31 Mon Sep 17 00:00:00 2001 From: StevenMcElligott <89483932+StevenMcElligott@users.noreply.github.com> Date: Sun, 28 Jan 2024 12:24:50 -0500 Subject: [PATCH] feat(ai-server): Add ai-server to replace CodeProject.Ai (#17565) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** Replaced and renamed upstream, so let's get this one working and then deprecate the old one ⚒️ Fixes #17535 **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code **🧪 How Has This Been Tested?** **📃 Notes:** **✔️ Checklist:** - [ ] ⚖️ My code follows the style guidelines of this project - [ ] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made corresponding changes to the documentation - [ ] ⚠️ My changes generate no new warnings - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [ ] ⬆️ I increased versions for any altered app according to semantic versioning **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._ --------- Signed-off-by: StevenMcElligott <89483932+StevenMcElligott@users.noreply.github.com> Signed-off-by: Xstar97TheNoob <9399967+xstar97@users.noreply.github.com> Co-authored-by: Xstar97TheNoob <9399967+xstar97@users.noreply.github.com> --- charts/incubator/ai-server/.helmignore | 30 +++++ charts/incubator/ai-server/CHANGELOG.md | 3 + charts/incubator/ai-server/Chart.yaml | 37 ++++++ charts/incubator/ai-server/README.md | 3 + .../incubator/ai-server/ci/base-values.yaml | 1 + .../incubator/ai-server/ci/gpu11-values.yaml | 1 + .../incubator/ai-server/ci/gpu12-values.yaml | 1 + charts/incubator/ai-server/icon.png | Bin 0 -> 7449 bytes charts/incubator/ai-server/questions.yaml | 110 ++++++++++++++++++ .../incubator/ai-server/templates/common.yaml | 1 + charts/incubator/ai-server/values.yaml | 46 ++++++++ 11 files changed, 233 insertions(+) create mode 100644 charts/incubator/ai-server/.helmignore create mode 100644 charts/incubator/ai-server/CHANGELOG.md create mode 100644 charts/incubator/ai-server/Chart.yaml create mode 100644 charts/incubator/ai-server/README.md create mode 100644 charts/incubator/ai-server/ci/base-values.yaml create mode 100644 charts/incubator/ai-server/ci/gpu11-values.yaml create mode 100644 charts/incubator/ai-server/ci/gpu12-values.yaml create mode 100644 charts/incubator/ai-server/icon.png create mode 100644 charts/incubator/ai-server/questions.yaml create mode 100644 charts/incubator/ai-server/templates/common.yaml create mode 100644 charts/incubator/ai-server/values.yaml 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/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DP?&-dS)nt8}!YV$9IEizM)PU)z9gz{1SwB1IT6w`LV`A6Wg$X@`{NsB4$W4eE# z&%apauK|Oe{#r4Z=6}3cFbL^?oNjRm$alr;y;}xB^CqLcuZM>hlb#0cjl94nRcS>{ St|W$aVyP*El%NXcAN~&p9VbKp literal 0 HcmV?d00001 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 +