feat(deepstack): use configmap to clean up gui (#1771)
* feat(deepstack): use configmap to clean up gui * add secrets and vision-enhance for the upcoming version * bump major and update common * rename app to deepstack * try the new configmap tpl * fix configmap * common * envFrom? * maybe? * or this? * Update charts/stable/deepstack/values.yaml * Update charts/stable/deepstack/values.yaml * try escaping Co-authored-by: Kjeld Schouten-Lebbing <kjeld@schouten-lebbing.nl>
This commit is contained in:
co-authored by
Kjeld Schouten-Lebbing
parent
7464c435af
commit
c56ed3ff1f
@@ -22,7 +22,7 @@ sources:
|
|||||||
- https://hub.docker.com/r/deepquestai/deepstack
|
- https://hub.docker.com/r/deepquestai/deepstack
|
||||||
- https://www.deepstack.cc/
|
- https://www.deepstack.cc/
|
||||||
type: application
|
type: application
|
||||||
version: 1.0.7
|
version: 2.0.0
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- AI
|
- AI
|
||||||
|
|||||||
@@ -87,7 +87,29 @@ questions:
|
|||||||
- value: "OnDelete"
|
- value: "OnDelete"
|
||||||
description: "(Legacy) OnDelete: ignore .spec.template changes"
|
description: "(Legacy) OnDelete: ignore .spec.template changes"
|
||||||
# Include{controllerExpert}
|
# Include{controllerExpert}
|
||||||
# Configure Enviroment Variables
|
- variable: secret
|
||||||
|
group: "Container Configuration"
|
||||||
|
label: "Image Secrets"
|
||||||
|
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
|
||||||
|
|
||||||
|
# Configure Enviroment Variables
|
||||||
- variable: env
|
- variable: env
|
||||||
group: "Container Configuration"
|
group: "Container Configuration"
|
||||||
label: "Image Environment"
|
label: "Image Environment"
|
||||||
@@ -102,39 +124,6 @@ questions:
|
|||||||
schema:
|
schema:
|
||||||
type: int
|
type: int
|
||||||
default: 568
|
default: 568
|
||||||
- variable: VISION-FACE
|
|
||||||
label: "VISION-FACE"
|
|
||||||
description: "Enables Face Detection"
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
default: "False"
|
|
||||||
enum:
|
|
||||||
- value: "False"
|
|
||||||
description: "False"
|
|
||||||
- value: "True"
|
|
||||||
description: "True"
|
|
||||||
- variable: VISION-DETECTION
|
|
||||||
label: "VISION-DETECTION"
|
|
||||||
description: "Enables Object Detection"
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
default: "True"
|
|
||||||
enum:
|
|
||||||
- value: "False"
|
|
||||||
description: "False"
|
|
||||||
- value: "True"
|
|
||||||
description: "True"
|
|
||||||
- variable: VISION-SCENE
|
|
||||||
label: "VISION-SCENE"
|
|
||||||
description: "Enables Scene Detection"
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
default: "False"
|
|
||||||
enum:
|
|
||||||
- value: "False"
|
|
||||||
description: "False"
|
|
||||||
- value: "True"
|
|
||||||
description: "True"
|
|
||||||
- variable: MODE
|
- variable: MODE
|
||||||
label: "Mode"
|
label: "Mode"
|
||||||
description: "Sets the performance mode"
|
description: "Sets the performance mode"
|
||||||
@@ -148,6 +137,39 @@ questions:
|
|||||||
description: "Medium"
|
description: "Medium"
|
||||||
- value: "Low"
|
- value: "Low"
|
||||||
description: "Low"
|
description: "Low"
|
||||||
|
- variable: deepstack
|
||||||
|
group: "Container 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{containerConfig}
|
# Include{containerConfig}
|
||||||
|
|
||||||
- variable: service
|
- variable: service
|
||||||
|
|||||||
@@ -25,17 +25,28 @@ podSecurityContext:
|
|||||||
runAsUser: 0
|
runAsUser: 0
|
||||||
runAsGroup: 0
|
runAsGroup: 0
|
||||||
|
|
||||||
|
secret:
|
||||||
|
API-KEY: ""
|
||||||
|
ADMIN-KEY: ""
|
||||||
|
|
||||||
env:
|
env:
|
||||||
PUID: 568
|
PUID: 568
|
||||||
USER_ID: "{{ .Values.env.PUID }}"
|
USER_ID: "{{ .Values.env.PUID }}"
|
||||||
VISION-FACE: "True"
|
|
||||||
VISION-DETECTION: "True"
|
|
||||||
VISION-SCENE: "True"
|
|
||||||
# Path to custom models (needs to be on documentation)
|
# Path to custom models (needs to be on documentation)
|
||||||
MODELSTORE-DETECTION: "{{ .Values.persistence.modelstore.mountPath }}"
|
MODELSTORE-DETECTION: "{{ .Values.persistence.modelstore.mountPath }}"
|
||||||
# High|Medium|Low
|
# High|Medium|Low
|
||||||
MODE: "High"
|
MODE: "High"
|
||||||
|
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: "{{ include \"common.names.fullname\" . }}-deepstack"
|
||||||
|
|
||||||
|
deepstack:
|
||||||
|
vision_face: true
|
||||||
|
vision_detection: true
|
||||||
|
vision_scene: true
|
||||||
|
vision_enhance: true
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
data:
|
data:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -43,3 +54,12 @@ persistence:
|
|||||||
modelstore:
|
modelstore:
|
||||||
enabled: true
|
enabled: true
|
||||||
mountPath: "/modelstore/detection"
|
mountPath: "/modelstore/detection"
|
||||||
|
|
||||||
|
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 }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user