mirror of
https://github.com/kerberos-io/helm-charts.git
synced 2026-11-28 00:00:23 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a847bcd3d5 | ||
|
|
a9f916fe89 | ||
|
|
9900824b59 | ||
|
|
d2a550b526 | ||
|
|
277b4e64b6 | ||
|
|
6f23fba755 |
@@ -16,7 +16,7 @@ type: application
|
||||
# This is the chart version. This version number should be incremented each time you make changes
|
||||
# to the chart and its templates, including the app version.
|
||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||
version: 0.147.0
|
||||
version: 0.148.0
|
||||
|
||||
# This is the version number of the application being deployed. This version number should be
|
||||
# incremented each time you make changes to the application. Versions are not expected to
|
||||
|
||||
@@ -313,6 +313,9 @@ spec:
|
||||
# workflows (for example the one-stage case redaction modal flow).
|
||||
- name: WORKFLOW_STAGE_QUEUES
|
||||
value: {{ include "kerberoshub.workflows.stageQueues" . | quote }}
|
||||
# Stages tenants may place in the workflow editor (see workflows.editorStages).
|
||||
- name: WORKFLOW_EDITOR_STAGES
|
||||
value: {{ .Values.kerberoshub.workflows.editorStages | default list | toJson | quote }}
|
||||
|
||||
# Stripe for billing
|
||||
- name: STRIPE_KEY
|
||||
|
||||
@@ -59,9 +59,11 @@ use this only to embed the same queue on a synthetic stage.
|
||||
{{- define "kerberoshub.workflows.stageQueues" -}}
|
||||
{{- $queues := dict -}}
|
||||
{{- range $operation, $service := (.Values.kerberoshub.services | default dict) -}}
|
||||
{{- if ne $operation "workflows" -}}
|
||||
{{- with $service.queue -}}
|
||||
{{- $_ := set $queues $operation . -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- $queues | toJson -}}
|
||||
{{- end -}}
|
||||
|
||||
@@ -18,6 +18,9 @@
|
||||
redaction) declares its destination provider with the named field
|
||||
services.<name>.storageProvider, rendered as KERBEROS_STORAGE_PROVIDER; a
|
||||
read-only stage omits it and gets no provider env.
|
||||
|
||||
Worker-specific settings go in services.<name>.env (plain values) and
|
||||
services.<name>.secretEnv (references to keys in an existing Secret).
|
||||
*/ -}}
|
||||
{{- if and (or (eq .Values.mode "all") (eq .Values.mode "pipeline")) .Values.kerberoshub.workflows.enabled -}}
|
||||
{{- $root := . -}}
|
||||
@@ -99,37 +102,6 @@ spec:
|
||||
- name: RABBITMQ_PASSWORD
|
||||
value: "{{ $root.Values.rabbitmq.password }}"
|
||||
|
||||
{{- with $svc.rabbitmqDestination }}
|
||||
# Outbound RabbitMQ destination for an integration boundary worker. Empty
|
||||
# host/credential values inherit the Hub broker while remaining a separate
|
||||
# connection and queue from the stage's inbound dispatch queue.
|
||||
- name: FORWARDER_RABBITMQ_HOST
|
||||
value: {{ default $root.Values.rabbitmq.host .host | quote }}
|
||||
- name: FORWARDER_RABBITMQ_USERNAME
|
||||
value: {{ default $root.Values.rabbitmq.username .username | quote }}
|
||||
- name: FORWARDER_RABBITMQ_PASSWORD
|
||||
value: {{ default $root.Values.rabbitmq.password .password | quote }}
|
||||
- name: FORWARDER_RABBITMQ_QUEUE
|
||||
value: {{ required (printf "kerberoshub.services.%s.rabbitmqDestination.queue is required" $name) .queue | quote }}
|
||||
- name: FORWARDER_RABBITMQ_VHOST
|
||||
value: {{ default "/" .virtualHost | quote }}
|
||||
- name: FORWARDER_RABBITMQ_TLS
|
||||
value: {{ default false .tls | quote }}
|
||||
- name: FORWARDER_RABBITMQ_TLS_INSECURE_SKIP_VERIFY
|
||||
value: {{ default false .tlsInsecureSkipVerify | quote }}
|
||||
- name: FORWARDER_RABBITMQ_TLS_CA_CERT_FILE
|
||||
value: {{ default "" .tlsCACertFile | quote }}
|
||||
- name: FORWARDER_RABBITMQ_DECLARE_QUEUE
|
||||
value: {{ .declareQueue | quote }}
|
||||
- name: FORWARDER_RABBITMQ_DEADLETTER_QUEUE
|
||||
value: {{ default (printf "%s.forwarder-dead-letter" .queue) .deadletterQueue | quote }}
|
||||
{{- end }}
|
||||
|
||||
{{- with $svc.callback }}
|
||||
- name: FORWARDER_CALLBACK_BASE_URL
|
||||
value: {{ default (printf "%s://%s" $root.Values.kerberoshub.api.schema $root.Values.kerberoshub.api.url) .baseURL | quote }}
|
||||
{{- end }}
|
||||
|
||||
# Kerberos Vault — global storage credentials this stage uses to fetch
|
||||
# the media it operates on.
|
||||
- name: KERBEROS_STORAGE_URI
|
||||
@@ -153,6 +125,19 @@ spec:
|
||||
{{- range $key, $value := $svc.env }}
|
||||
- name: {{ $key }}
|
||||
value: {{ $value | quote }}
|
||||
{{- end }} {{- with $svc.secretEnv }}
|
||||
|
||||
# Per-stage secret env. Each key under services.<name>.secretEnv maps a
|
||||
# container env var to a key in an existing Kubernetes Secret
|
||||
# ({name, key}), so credentials such as a model API key stay out of
|
||||
# values. The Secret must exist in the release namespace.
|
||||
{{- range $key, $ref := . }}
|
||||
- name: {{ $key }}
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ required (printf "kerberoshub.services.%s.secretEnv.%s.name is required" $name $key) $ref.name | quote }}
|
||||
key: {{ required (printf "kerberoshub.services.%s.secretEnv.%s.key is required" $name $key) $ref.key | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
---
|
||||
apiVersion: v1
|
||||
|
||||
@@ -75,12 +75,15 @@ spec:
|
||||
# under kerberoshub.workflows.definitions (see _workflows-helpers.tpl).
|
||||
# Definitions are the engine's boot-loaded config source and deployment
|
||||
# stage catalog. Organisation-scoped database workflows are read per
|
||||
# recording; an in-cluster engine still requires at least one config
|
||||
# definition so an empty catalog cannot silently drop traffic.
|
||||
# recording; an in-cluster engine refuses to start only when both the
|
||||
# config definitions and the stage-queue catalog below are empty.
|
||||
- name: WORKFLOWS_QUEUE
|
||||
value: "{{ .Values.kerberoshub.services.workflows.queue }}"
|
||||
- name: WORKFLOW_DEFINITIONS
|
||||
value: {{ include "kerberoshub.workflows.workflowDefinitions" . | quote }}
|
||||
# Operation→queue catalog so DB workflows reach workers no config workflow references.
|
||||
- name: WORKFLOW_STAGE_QUEUES
|
||||
value: {{ include "kerberoshub.workflows.stageQueues" . | quote }}
|
||||
|
||||
# RabbitMQ settings
|
||||
- name: RABBITMQ_HOST
|
||||
|
||||
+58
-51
@@ -814,18 +814,7 @@ kerberoshub:
|
||||
# Every stage `operation` must have a deployed worker under
|
||||
# kerberoshub.services.<operation> (deploy the objecttracking / loitering
|
||||
# workers below).
|
||||
definitions:
|
||||
# Minimal opt-in workflow for validating the external forwarding boundary.
|
||||
# Enable this definition together with services.forwarder and the workflows
|
||||
# master switch. Every automatically opened run is sent to the configured
|
||||
# FORWARDER_RABBITMQ_QUEUE and remains open until its callback is accepted.
|
||||
forwarder-test:
|
||||
enabled: false
|
||||
triggers:
|
||||
- type: automatic
|
||||
stages:
|
||||
- operation: forwarder
|
||||
dispatch: always
|
||||
definitions: {}
|
||||
#tracking-workflow:
|
||||
# enabled: true
|
||||
# triggers:
|
||||
@@ -839,6 +828,24 @@ kerberoshub:
|
||||
# # (no condition ⇒ gate on the upstream's presence, not a value).
|
||||
# needs:
|
||||
# - operation: objecttracking
|
||||
#vlm-workflow:
|
||||
# # Describe every recording with the hub-vlm worker (services.vlm below).
|
||||
# enabled: true
|
||||
# triggers:
|
||||
# - type: automatic
|
||||
# stages:
|
||||
# - operation: vlm
|
||||
# dispatch: always
|
||||
# Stages tenants may place on the workflow editor canvas next to the device
|
||||
# node. Each entry needs a deployed worker (services.<operation>.queue);
|
||||
# entries without one are hidden. Empty means the editor offers no stages.
|
||||
editorStages: []
|
||||
# - operation: vlm
|
||||
# name: Describe recording
|
||||
# description: Summarise the recording with a vision language model.
|
||||
# - operation: forwarder
|
||||
# name: Forward to my system
|
||||
# description: Send the result to the external destination configured for the forwarder.
|
||||
# Workflow deployments. Every workflows-subsystem Deployment's image/tag/
|
||||
# replicas/resources/queue lives here in a single, uniform shape:
|
||||
# - `workflows` is the engine itself (the orchestrator). It is deployed
|
||||
@@ -849,6 +856,8 @@ kerberoshub:
|
||||
# Deploying a worker (services.<name>.enabled) is independent from routing
|
||||
# to it (a workflows.definitions stage of the same operation) — it runs only
|
||||
# when its own `enabled` is true AND the workflows engine is enabled.
|
||||
# Worker-specific settings go in `env` (plain key/values) and `secretEnv`
|
||||
# (ENV_NAME: {name, key} of an existing Secret, for credentials).
|
||||
services:
|
||||
# hub-workflows — the workflows engine (orchestrator). Consumes the engine
|
||||
# queue, evaluates the boot-loaded config workflows (WORKFLOW_DEFINITIONS)
|
||||
@@ -876,45 +885,6 @@ kerberoshub:
|
||||
requests:
|
||||
memory: 10Mi
|
||||
cpu: 10m
|
||||
# hub-workflows-forwarder — an opt-in boundary worker for testing external
|
||||
# workflow delivery. It consumes WorkflowRun dispatches from `queue`, strips
|
||||
# internal credentials, and publishes a versioned invocation to the separate
|
||||
# RabbitMQ destination below.
|
||||
forwarder:
|
||||
enabled: false
|
||||
repository: ghcr.io/uug-ai/hub-workflows-forwarder
|
||||
pullPolicy: IfNotPresent
|
||||
tag: "v1.0.1"
|
||||
replicas: 1
|
||||
topologySpreadConstraints: []
|
||||
logLevel: "info"
|
||||
queue: "kcloud-forwarder-queue.fifo"
|
||||
rabbitmqDestination:
|
||||
# Empty connection values inherit the chart's top-level rabbitmq values,
|
||||
# which makes the first test use a second queue on the existing broker.
|
||||
host: ""
|
||||
username: ""
|
||||
password: ""
|
||||
queue: "hub-workflows-forwarder-test"
|
||||
virtualHost: "/"
|
||||
tls: false
|
||||
tlsInsecureSkipVerify: false
|
||||
tlsCACertFile: ""
|
||||
# The test queue and its dead-letter queue are durable quorum queues.
|
||||
# Set this false when both queues are provisioned outside this service.
|
||||
declareQueue: true
|
||||
deadletterQueue: "hub-workflows-forwarder-test.forwarder-dead-letter"
|
||||
callback:
|
||||
# Empty uses the Hub API endpoint configured by kerberoshub.api.
|
||||
baseURL: ""
|
||||
env:
|
||||
FORWARDER_OPERATION: "forwarder"
|
||||
FORWARDER_COMPLETION_MODE: "callback"
|
||||
FORWARDER_MAX_RETRIES: "5"
|
||||
resources:
|
||||
requests:
|
||||
memory: 16Mi
|
||||
cpu: 10m
|
||||
# ---------------------------------------------------------------------
|
||||
# EXAMPLE custom stage worker (commented out) — hub-loitering.
|
||||
#
|
||||
@@ -966,6 +936,43 @@ kerberoshub:
|
||||
# requests:
|
||||
# memory: 10Mi
|
||||
# cpu: 10m
|
||||
# ---------------------------------------------------------------------
|
||||
# EXAMPLE stage worker (commented out) — hub-vlm (operation "vlm").
|
||||
#
|
||||
# Samples frames from the recording, describes them with an Azure OpenAI
|
||||
# vision model and emits timeline markers plus a recording description.
|
||||
# Route to it with a workflows.definitions stage `- operation: vlm`.
|
||||
# See https://github.com/uug-ai/hub-vlm for every VLM_* / AZURE_OPENAI_*
|
||||
# setting. Create the API key Secret first, e.g.
|
||||
# kubectl create secret generic hub-vlm-azure-openai \
|
||||
# --from-literal=apiKey=<azure-openai-api-key>
|
||||
#vlm:
|
||||
# # Deploy the hub-vlm worker.
|
||||
# enabled: true
|
||||
# repository: ghcr.io/uug-ai/hub-vlm
|
||||
# pullPolicy: IfNotPresent
|
||||
# tag: "v1.0.0"
|
||||
# replicas: 1 # Number of pods for the worker.
|
||||
# topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
# logLevel: "info" # possible values: trace, debug, info, warn, error
|
||||
# # Queue this worker consumes dispatched messages from (VLM_QUEUE).
|
||||
# queue: "hub-vlm-queue"
|
||||
# env:
|
||||
# AZURE_OPENAI_ENDPOINT: "https://<resource>.openai.azure.com"
|
||||
# AZURE_OPENAI_DEPLOYMENT: "gpt-5.4-mini" # Name of the model deployment.
|
||||
# AZURE_OPENAI_REASONING_EFFORT: "low" # none | minimal | low | medium | high
|
||||
# VLM_MAX_FRAMES: "8" # Frames sampled per recording (max 32).
|
||||
# VLM_FRAME_WIDTH: "1024" # Maximum frame width in pixels.
|
||||
# VLM_SET_DESCRIPTION: "true" # Write the summary to the recording description.
|
||||
# # The API key is read from an existing Secret, never from values.
|
||||
# secretEnv:
|
||||
# AZURE_OPENAI_API_KEY:
|
||||
# name: hub-vlm-azure-openai
|
||||
# key: apiKey
|
||||
# resources:
|
||||
# requests:
|
||||
# memory: 128Mi
|
||||
# cpu: 100m
|
||||
monitordevice:
|
||||
repository: ghcr.io/uug-ai/hub-monitor-device
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
Reference in New Issue
Block a user