chore(stable): BREAKING CHANGE Adapt stable charts to new common Part 1

This commit is contained in:
Kjeld Schouten-Lebbing
2023-04-10 10:01:50 +02:00
parent 14bc83d3c7
commit 2bdeb78b7b
2203 changed files with 352100 additions and 0 deletions

30
tmp/deepstack/.helmignore Normal file
View File

@@ -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

1700
tmp/deepstack/CHANGELOG.md Normal file

File diff suppressed because it is too large Load Diff

28
tmp/deepstack/Chart.yaml Normal file
View File

@@ -0,0 +1,28 @@
apiVersion: v2
appVersion: "2022.01.1"
dependencies:
- name: common
repository: https://library-charts.truecharts.org
version: 12.2.32
deprecated: false
description: DeepStack AI provides AI features including Face Recognition, Object Detection, Scene Recognition and custom AI Models
home: https://truecharts.org/charts/stable/deepstack
icon: https://truecharts.org/img/hotlink-ok/chart-icons/deepstack.png
keywords:
- AI
kubeVersion: ">=1.16.0-0"
maintainers:
- email: info@truecharts.org
name: TrueCharts
url: https://truecharts.org
name: deepstack
sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/deepstack
- https://github.com/johnolafenwa/DeepStack
- https://www.deepstack.cc/
type: application
version: 7.0.0
annotations:
truecharts.org/catagories: |
- AI
truecharts.org/SCALE-support: "true"

27
tmp/deepstack/README.md Normal file
View File

@@ -0,0 +1,27 @@
# README
## General Info
TrueCharts can be installed as both *normal* Helm Charts or as Apps on TrueNAS SCALE.
However only installations using the TrueNAS SCALE Apps system are supported.
For more information about this App, please check the docs on the TrueCharts [website](https://truecharts.org/charts/stable/)
**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/truecharts/charts/issues/new/choose)**
## Support
- Please check our [quick-start guides for TrueNAS SCALE](https://truecharts.org/manual/SCALE%20Apps/Important-MUST-READ).
- See the [Website](https://truecharts.org)
- Check our [Discord](https://discord.gg/tVsPTHWTtr)
- Open a [issue](https://github.com/truecharts/charts/issues/new/choose)
---
## Sponsor TrueCharts
TrueCharts can only exist due to the incredible effort of our staff.
Please consider making a [donation](https://truecharts.org/sponsor) or contributing back to the project any way you can!
*All Rights Reserved - The TrueCharts Project*

View File

View File

@@ -0,0 +1 @@
imageSelector: "imageGPU"

View File

@@ -0,0 +1,6 @@
# Installation Notes
## Custom Models
If you have custom models and you wan to use them, you have to add customStorage to this app. The default path to map is `/modelstore/detection`.
In case you like to change it, you also have to change `Custom Models Path` field to the path you mapped as customStorage.

BIN
tmp/deepstack/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -0,0 +1,181 @@
# Include{groups}
portals:
open:
# Include{portalLink}
questions:
# Portal
# Include{global}
- variable: imageSelector
group: "Container Image"
label: "Select Image"
schema:
type: string
default: "image"
enum:
- value: "image"
description: "CPU"
- value: "gpuImage"
description: "GPU"
# Include{workload}
# Include{workloadDeployment}
# Include{replicas1}
# Include{podSpec}
# Include{containerMain}
- variable: env
group: "App Configuration"
label: "Image Environment"
schema:
additional_attrs: true
type: dict
attrs:
- variable: API-KEY
label: "API Key"
description: "The API Key protects all recognition and detection endpoints including face, scene, object detection and custom models"
schema:
type: string
private: true
default: ""
- variable: ADMIN-KEY
label: "Admin key"
description: "The admin key protects admin apis such as adding models, deleting models, list models, backup and restore."
schema:
type: string
default: ""
private: true
- variable: MODE
label: "Mode"
description: "Sets the performance mode"
schema:
type: string
default: "Medium"
enum:
- value: "High"
description: "High"
- value: "Medium"
description: "Medium"
- value: "Low"
description: "Low"
- variable: THREADCOUNT
label: "Threadcount"
description: "Sets the threadcount each endpoint will run with"
schema:
type: int
default: 5
- variable: deepstack
group: "App Configuration"
label: "Image Environment"
schema:
additional_attrs: true
type: dict
attrs:
- variable: vision_face
label: "VISION-FACE"
description: "Enables Face Detection"
schema:
type: boolean
default: false
- variable: vision_detection
label: "VISION-DETECTION"
description: "Enables Object Detection"
schema:
type: boolean
default: true
enum:
- variable: vision_scene
label: "VISION-SCENE"
description: "Enables Scene Detection"
schema:
type: boolean
default: false
- variable: vision_face
label: "VISION-ENHANCE"
description: "Enables Enhance Endpoint"
schema:
type: boolean
default: false
# Include{containerBasic}
# Include{containerAdvanced}
# Include{containerConfig}
# 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: 10049
required: true
# Include{serviceExpertRoot}
default: false
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
- variable: data
label: "App Config Storage"
description: "Stores the Application Configuration."
schema:
additional_attrs: true
type: dict
attrs:
# Include{persistenceBasic}
- variable: modelstore
label: "App Model Storage"
description: "Stores the Application Model."
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{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 this App 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}

View File

@@ -0,0 +1 @@
{{- include "tc.v1.common.lib.chart.notes" $ -}}

View File

@@ -0,0 +1 @@
{{ include "tc.v1.common.loader.all" . }}

80
tmp/deepstack/values.yaml Normal file
View File

@@ -0,0 +1,80 @@
image:
repository: tccr.io/truecharts/deepstack-cpu
pullPolicy: IfNotPresent
tag: v2022.01.1@sha256:494b5bec44924da7789d6093464e2c41d4d8866aa4db54d6e3dcbecb7ae84d48
gpuImage:
repository: tccr.io/truecharts/deepstack-gpu
pullPolicy: IfNotPresent
tag: 2022.01.1@sha256:8df0f00903427234b7786e3bbe9ecfbc852a34d22509823e360336f1f04b41ba
imageSelector: "image"
securityContext:
container:
readOnlyRootFilesystem: false
runAsNonRoot: false
runAsUser: 0
runAsGroup: 0
service:
main:
ports:
main:
port: 10049
protocol: http
targetPort: 5000
deepstack:
vision_face: true
vision_detection: true
vision_scene: true
vision_enhance: true
configmap:
deepstack:
enabled: true
data:
VISION-FACE: '{{ ternary "True" "False" .Values.deepstack.vision_face }}'
VISION-DETECTION: '{{ ternary "True" "False" .Values.deepstack.vision_detection }}'
VISION-SCENE: '{{ ternary "True" "False" .Values.deepstack.vision_scene }}'
VISION-ENHANCE: '{{ ternary "True" "False" .Values.deepstack.vision_enhance }}'
workload:
main:
podSpec:
containers:
main:
probes:
liveness:
type: http
path: /
readiness:
type: http
path: /
startup:
type: http
path: /
env:
# Path to custom models (needs to be on documentation)
MODELSTORE-DETECTION: "{{ .Values.persistence.modelstore.mountPath }}"
# High|Medium|Low
MODE: "High"
THREADCOUNT: 5
API-KEY: ""
ADMIN-KEY: ""
envFrom:
- configMapRef:
name: "deepstack"
persistence:
data:
enabled: true
mountPath: /datastore
modelstore:
enabled: true
mountPath: /modelstore/detection
portal:
open:
enabled: true