mirror of
https://github.com/kerberos-io/helm-charts.git
synced 2026-11-25 23:40:24 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
49f7361244 |
@@ -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.206.0
|
||||
version: 0.204.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
|
||||
|
||||
+5
-51
@@ -202,50 +202,6 @@ failure and test targeted replacement, idempotency, and reverse migration for al
|
||||
three Deployments. CI also checks API rejection of duplicate names and acceptance
|
||||
of the repaired spec against a disposable Kind cluster.
|
||||
|
||||
### Extra environment for pipeline workers (chart 0.206.0)
|
||||
|
||||
Every pipeline worker accepts an `extraEnv` list of Kubernetes `EnvVar` entries
|
||||
(`name` + `value`, or `name` + `valueFrom`). They are added after every variable
|
||||
the chart sets, so a worker setting the chart has no value for yet can be turned
|
||||
on without a chart release. All default to `[]`.
|
||||
|
||||
| Values path | Deployment |
|
||||
| --- | --- |
|
||||
| `kerberospipeline.event` | `pipe-event` |
|
||||
| `kerberospipeline.monitor` | `pipe-monitor` |
|
||||
| `kerberospipeline.sequence` | `pipe-sequence` |
|
||||
| `kerberospipeline.throttler` | `pipe-throttler` |
|
||||
| `kerberospipeline.notify` | `pipe-notify` |
|
||||
| `kerberospipeline.notifyTest` | `pipe-notify-test` |
|
||||
| `kerberospipeline.analysis` | `pipe-analysis` |
|
||||
| `kerberospipeline.dominantColor` | `pipe-dominantcolor` |
|
||||
| `kerberospipeline.thumbnail` | `pipe-thumbnail` |
|
||||
| `kerberospipeline.counting` | `pipe-counting` |
|
||||
| `kerberospipeline.sprite` | `pipe-sprite` |
|
||||
| `kerberospipeline.export` | `pipe-export` |
|
||||
| `kerberoshub.services.workflows` | `hub-workflows` |
|
||||
|
||||
Generic workflow stage workers (`kerberoshub.services.<stage>`) keep using their
|
||||
`env` and `secretEnv` maps.
|
||||
|
||||
```yaml
|
||||
kerberospipeline:
|
||||
thumbnail:
|
||||
extraEnv:
|
||||
- name: THUMBNAIL_THREADS
|
||||
value: "1"
|
||||
- name: GOMAXPROCS
|
||||
valueFrom:
|
||||
resourceFieldRef:
|
||||
resource: limits.cpu
|
||||
```
|
||||
|
||||
Do not repeat a variable the chart already sets (for example `LOG_LEVEL`):
|
||||
Kubernetes keeps the last entry, but server-side apply (Argo CD
|
||||
`ServerSideApply=true`) can reject the duplicate name. An entry without a `name`,
|
||||
or a name repeated within one `extraEnv`, fails the render. Settings that stay
|
||||
should get their own documented value, as `kerberospipeline.thumbnail.rangeDownload` did.
|
||||
|
||||
### Hardened Hub workers (opt-in, chart 0.167.3)
|
||||
|
||||
The worker templates accept **per-component** `securityContext` (container) and
|
||||
@@ -880,9 +836,6 @@ kerberospipeline:
|
||||
| `mqtt.password` | MQTT (Vernemq) password, by default `'yourpassword'`. | `"yourpassword"` |
|
||||
| `mqtt.legacy.host` | Legacy MQTT broker host used for backward-compatible clients. | `""` |
|
||||
| `mqtt.legacy.port` | Legacy MQTT broker port used for backward-compatible clients. | `""` |
|
||||
| `mqtt.signals.enabled` | Switches hub-api's MQTT signals on (sets `MQTT_SIGNALS_ENABLED`). Signals are content-free messages (only `{"at": time}`, not retained) on opaque topics, for listeners such as cha-ching that play a sound. A signal is sent only when this is `true`, `uri` is set and its event has a topic, so an environment can keep its topics configured with signals off. Needs hub-api with MQTT signals (uug-ai/hub-api#899). | `false` |
|
||||
| `mqtt.signals.uri` | Broker hub-api publishes signals on (sets `MQTT_URI`), for example `tcp://mqtt.kerberos.io:1883` or `wss://mqtt.kerberos.io:8443/mqtt`; the login is `mqtt.username` / `mqtt.password`. | `""` |
|
||||
| `mqtt.signals.registrationTopic` | Topic signalled after a successful `/register` (sets `MQTT_REGISTRATION_TOPIC`). Use an opaque identifier such as `sound/a31dc38882fd5460`: on a public broker the topic is visible to anyone subscribed to it. Without a topic, registrations are not signalled. | `""` |
|
||||
| `queueProvider` | The queue we are using for the [pipeline](https://doc.kerberos.io/hub/pipeline/): 'SQS', 'KAFKA' or `RABBITMQ`. | `"RABBITMQ"` |
|
||||
| `queueName` | The event queue which is propagating messages in the [Kerberos Hub pipeline](https://doc.kerberos.io/hub/pipeline/). | `"kcloud-event-queue"` |
|
||||
| `rabbitmq.host` | RabbitMQ host, by default `'rabbitmq.yourdomain.com:5671'` | `"rabbitmq.rabbitmq:5672"` |
|
||||
@@ -903,6 +856,10 @@ kerberospipeline:
|
||||
| `turn.host` | TURN/STUN hostname, by default `'turn:turn.yourdomain.com:8443'` | `"turn:turn.yourdomain.com:8443"` |
|
||||
| `turn.username` | TURN/STUN username, by default `'username1'` | `"username1"` |
|
||||
| `turn.password` | TURN/STUN password, by default `'password1'` | `"password1"` |
|
||||
| `pusher.appId` | Pusher app ID for in-app browser notifications from hub-api and the device monitor, rendered as `PUSHER_APP_ID` (hub-api and hub-monitor-device built on github.com/uug-ai/integrations). | `""` |
|
||||
| `pusher.key` | Pusher app key, rendered as `PUSHER_KEY`. | `""` |
|
||||
| `pusher.secret` | Pusher app secret, rendered as `PUSHER_SECRET`. | `""` |
|
||||
| `pusher.cluster` | Pusher cluster, rendered as `PUSHER_CLUSTER`. | `"eu"` |
|
||||
| `opentelemetry.enabled` | Enable or disable OpenTelemetry instrumentation. | `false` |
|
||||
| `opentelemetry.routingEnabled` | Enable or disable OpenTelemetry routing/export behavior. | `false` |
|
||||
| `opentelemetry.collector.endpoint` | OpenTelemetry collector endpoint used for trace export. | `"http://otel-collector:4317"` |
|
||||
@@ -1299,8 +1256,6 @@ kerberospipeline:
|
||||
| `kerberospipeline.thumbnail.tag` | The Docker image tag/version. | `"v1.3.25"` |
|
||||
| `kerberospipeline.thumbnail.replicas` | Number of replicas for `kerberospipeline.thumbnail`. | `2` |
|
||||
| `kerberospipeline.thumbnail.prefetchCount` | Max unacknowledged RabbitMQ messages per pod (`RABBITMQ_PREFETCH_COUNT`); `0` keeps the service default of 5. Requires hub-pipeline-thumbnail ≥ v1.3.15. | `0` |
|
||||
| `kerberospipeline.thumbnail.rangeDownload` | Download only the fragments around the requested frame with HTTP range requests instead of the whole recording (`THUMBNAIL_RANGE_DOWNLOAD`); falls back to the whole recording when a recording has no segment index. Older images ignore it. | `false` |
|
||||
| `kerberospipeline.<worker>.extraEnv` | Extra container env for that pipeline worker, after the chart's own variables; see [Extra environment for pipeline workers](#extra-environment-for-pipeline-workers-chart-02060). | `[]` |
|
||||
| `kerberospipeline.sprite.prefetchCount` | Max unacknowledged RabbitMQ messages per pod (`RABBITMQ_PREFETCH_COUNT`); `0` keeps the service default of 5. Requires hub-pipeline-sprite ≥ v1.1.21. | `0` |
|
||||
| `kerberospipeline.thumbnail.logLevel` | Log verbosity level for `kerberospipeline.thumbnail`. | `"info"` |
|
||||
| `kerberospipeline.thumbnail.quality` | Configuration value for `kerberospipeline.thumbnail.quality`. | `"1"` |
|
||||
@@ -1369,7 +1324,6 @@ kerberospipeline:
|
||||
| `email.templates.deviceGroupTitle` | Email subject title for the `device_group` template. | `"[Device] Several cameras changed status"` |
|
||||
| `email.templates.recording` | The template for recording check alerts (a continuously recording camera that is online but uploads no recordings, and again when it records). Empty uses `recording` with SMTP; for SendGrid or Mailgun set the template id, otherwise they use `device`. See *Camera recordings* below. | `""` |
|
||||
| `email.templates.recordingTitle` | Email subject for recording check alerts. Empty uses "[Device] A camera stopped recording", "[Device] A camera is recording again" and their forms for several cameras. | `""` |
|
||||
| `email.customTemplates` | Email templates of this deployment, by file name (`<template>.html` / `<template>.txt`). Mounted read-only at `/mail/templates` on hub-api, pipe-notify and hub-monitor-device from the `hub-email-templates` ConfigMap; each replaces the built-in template with the same name when sending with SMTP. Other file names fail the render. | `{}` |
|
||||
| `email.mailgun.apiKey` | The Mailgun API key linked to your Mailgun domain. | `""` |
|
||||
| `imagePullSecrets.name` | Docker registry secret name, which is also granted with the license. This allows you to download the Docker images. | `""` |
|
||||
| `kerberoshub.frontend.ssoDomain` | The domain that's being used to activate SSO from the login page. | `""` |
|
||||
@@ -1382,7 +1336,7 @@ Every email Hub sends is a template: an HTML file, plus a plain-text `.txt` vers
|
||||
#### Which template is used
|
||||
|
||||
- `email.templates.<name>` sets the template name for each email (for example `email.templates.detection: "detection"`).
|
||||
- With `email.provider: smtp`, Hub reads `/mail/templates/<name>.html` and `/mail/templates/<name>.txt` from the container. If the files are not there, it uses its built-in template with that name. Each service has built-in templates for the emails it sends: hub-api for welcome, activate, forgot, share, share_case, share_case_otp, assign_task and invitation; pipe-notify for detection; hub-monitor-device for device, device_group and recording. To use your own, set them in `email.customTemplates` (file name → content). The chart puts them in the `hub-email-templates` ConfigMap and mounts it read-only at `/mail/templates` on those three services. A volume mounted at `/mail` (the commented `custom-email-templates` volume in `values.yaml`) still works when `email.customTemplates` is empty. The [`custom-layout/templates`](custom-layout/templates) folder holds a complete set to start from.
|
||||
- With `email.provider: smtp`, Hub reads `/mail/templates/<name>.html` and `/mail/templates/<name>.txt` from the container. If the files are not there, it uses its built-in template with that name. To use your own, mount a volume at `/mail` (see the commented `custom-email-templates` volume in `values.yaml`). The [`custom-layout/templates`](custom-layout/templates) folder holds a complete set to start from.
|
||||
- With `email.provider: mailgun`, `<name>` is a template stored in your Mailgun account. Mailgun receives `user`, `text`, `link`, `numberOfMedia`, `dataUsage` and the email-specific values below as template variables. The computed values (dates, camera, sites, groups, thumbnail) are only filled in with `smtp`.
|
||||
- Alert emails (`detection`) are only sent when `email.provider` is `smtp`.
|
||||
- A placeholder that has no value for that email stays in the email as literal text, so only use the placeholders listed for it. The bundled templates contain `{{tab1_href}}`, `{{tab1_title}}`, `{{tab2_href}}` and `{{tab2_title}}`; these are not filled in.
|
||||
|
||||
@@ -169,33 +169,3 @@ Use: fromJsonArray (include "hub.audit.destinations" .)
|
||||
{{- end -}}
|
||||
{{- toJson $resolved -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Extra container env for a pipeline service, from <component>.extraEnv: a list
|
||||
of Kubernetes EnvVar entries (name + value, or name + valueFrom), rendered after
|
||||
every variable the chart sets. Use it for worker settings the chart has no
|
||||
value for yet.
|
||||
|
||||
Do not repeat a variable the chart already sets: Kubernetes keeps the last
|
||||
entry, but server-side apply (Argo CD ServerSideApply) can reject a duplicate
|
||||
name. Names repeated within extraEnv itself fail the render.
|
||||
|
||||
Usage, as the last line of the container's env list:
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberospipeline.thumbnail" "values" $.Values.kerberospipeline.thumbnail) }}
|
||||
*/}}
|
||||
{{- define "hub.pipeline.extraEnv" -}}
|
||||
{{- $env := (.values | default dict).extraEnv | default list -}}
|
||||
{{- $seen := dict -}}
|
||||
{{- range $i, $var := $env -}}
|
||||
{{- if not (and (kindIs "map" $var) $var.name) -}}
|
||||
{{- fail (printf "%s.extraEnv[%d] needs a name" $.path $i) -}}
|
||||
{{- end -}}
|
||||
{{- if hasKey $seen $var.name -}}
|
||||
{{- fail (printf "%s.extraEnv sets %s more than once" $.path $var.name) -}}
|
||||
{{- end -}}
|
||||
{{- $_ := set $seen $var.name true -}}
|
||||
{{- end -}}
|
||||
{{- with $env }}
|
||||
{{ toYaml . | indent 8 }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
{{- with .Values.email.customTemplates }}
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: hub-email-templates
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
data:
|
||||
# email.customTemplates, mounted at /mail/templates on hub-api, pipe-notify
|
||||
# and hub-monitor-device. Each file replaces the built-in template with the
|
||||
# same name when the services send with SMTP.
|
||||
{{- range $file, $content := . }}
|
||||
{{- if not (regexMatch "^[a-z0-9_]+\\.(html|txt)$" $file) }}
|
||||
{{- fail (printf "email.customTemplates: %q must be named <template>.html or <template>.txt" $file) }}
|
||||
{{- end }}
|
||||
{{ $file }}: {{ $content | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
@@ -158,7 +158,7 @@ spec:
|
||||
{{- $mongodbTLS := .Values.mongodb.tls }}
|
||||
{{- $classificationCatalogEnabled := .Values.classificationCatalogEnabled }}
|
||||
{{- $deviceSystemTagsEnabled := include "kerberoshub.deviceTags.system.enabled" . }}
|
||||
{{- if or $workflowConfiguration.enabled $classificationCatalogEnabled $deviceSystemTagsEnabled .Values.subscriptions.plans.enabled .Values.email.customTemplates .Values.kerberoshub.api.volumes (and $serverTLS.enabled $serverTLS.secretName) (and $mongodbTLS.enabled $mongodbTLS.existingSecret) }}
|
||||
{{- if or $workflowConfiguration.enabled $classificationCatalogEnabled $deviceSystemTagsEnabled .Values.subscriptions.plans.enabled .Values.kerberoshub.api.volumes (and $serverTLS.enabled $serverTLS.secretName) (and $mongodbTLS.enabled $mongodbTLS.existingSecret) }}
|
||||
volumes:
|
||||
{{- if $workflowConfiguration.enabled }}
|
||||
- name: workflow-configuration
|
||||
@@ -221,11 +221,6 @@ spec:
|
||||
configMap:
|
||||
name: hub-plans
|
||||
{{- end }}
|
||||
{{- if .Values.email.customTemplates }}
|
||||
- name: email-templates
|
||||
configMap:
|
||||
name: hub-email-templates
|
||||
{{- end }}
|
||||
{{- with .Values.kerberoshub.api.volumes }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
@@ -257,7 +252,7 @@ spec:
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
{{- if or $workflowConfiguration.enabled $classificationCatalogEnabled $deviceSystemTagsEnabled .Values.subscriptions.plans.enabled .Values.email.customTemplates .Values.kerberoshub.api.volumeMounts (and $serverTLS.enabled $serverTLS.secretName) (and $mongodbTLS.enabled $mongodbTLS.existingSecret) }}
|
||||
{{- if or $workflowConfiguration.enabled $classificationCatalogEnabled $deviceSystemTagsEnabled .Values.subscriptions.plans.enabled .Values.kerberoshub.api.volumeMounts (and $serverTLS.enabled $serverTLS.secretName) (and $mongodbTLS.enabled $mongodbTLS.existingSecret) }}
|
||||
volumeMounts:
|
||||
{{- if $workflowConfiguration.enabled }}
|
||||
- name: workflow-configuration
|
||||
@@ -279,11 +274,6 @@ spec:
|
||||
mountPath: /etc/kerberos/plans
|
||||
readOnly: true
|
||||
{{- end }}
|
||||
{{- if .Values.email.customTemplates }}
|
||||
- name: email-templates
|
||||
mountPath: /mail/templates
|
||||
readOnly: true
|
||||
{{- end }}
|
||||
{{- with .Values.kerberoshub.api.volumeMounts}}
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
@@ -402,16 +392,6 @@ spec:
|
||||
value: "{{ .Values.mqtt.username }}"
|
||||
- name: MQTT_PASSWORD
|
||||
value: "{{ .Values.mqtt.password }}"
|
||||
# MQTT signals: a content-free message on an opaque topic after a
|
||||
# registration (cha-ching plays a sound); off unless enabled, with
|
||||
# a uri and the event's topic.
|
||||
{{- $signals := (.Values.mqtt | default dict).signals | default dict }}
|
||||
- name: MQTT_SIGNALS_ENABLED
|
||||
value: {{ $signals.enabled | default false | quote }}
|
||||
- name: MQTT_URI
|
||||
value: {{ $signals.uri | default "" | quote }}
|
||||
- name: MQTT_REGISTRATION_TOPIC
|
||||
value: {{ $signals.registrationTopic | default "" | quote }}
|
||||
|
||||
# TURN credentials (served via /runtime/config to authenticated
|
||||
# frontend clients; no longer exposed in the public env.js).
|
||||
@@ -622,6 +602,16 @@ spec:
|
||||
- name: SLACK_USERNAME
|
||||
value: "{{ .Values.kerberoshub.api.slack.username }}"
|
||||
|
||||
# Pusher (in-app notifications)
|
||||
- name: PUSHER_APP_ID
|
||||
value: {{ .Values.pusher.appId | quote }}
|
||||
- name: PUSHER_KEY
|
||||
value: {{ .Values.pusher.key | quote }}
|
||||
- name: PUSHER_SECRET
|
||||
value: {{ .Values.pusher.secret | quote }}
|
||||
- name: PUSHER_CLUSTER
|
||||
value: {{ .Values.pusher.cluster | quote }}
|
||||
|
||||
# Mail settings
|
||||
- name: MAIL_PROVIDER
|
||||
value: "{{ .Values.email.provider }}"
|
||||
|
||||
@@ -34,13 +34,8 @@ spec:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- $mongodbTLS := .Values.mongodb.tls }}
|
||||
{{- if or .Values.kerberoshub.monitordevice.volumes .Values.email.customTemplates (and $mongodbTLS.enabled $mongodbTLS.existingSecret) }}
|
||||
{{- if or .Values.kerberoshub.monitordevice.volumes (and $mongodbTLS.enabled $mongodbTLS.existingSecret) }}
|
||||
volumes:
|
||||
{{- if .Values.email.customTemplates }}
|
||||
- name: email-templates
|
||||
configMap:
|
||||
name: hub-email-templates
|
||||
{{- end }}
|
||||
{{- with .Values.kerberoshub.monitordevice.volumes }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
@@ -70,13 +65,8 @@ spec:
|
||||
containerPort: 8080
|
||||
protocol: TCP
|
||||
{{- end }}
|
||||
{{- if or .Values.kerberoshub.monitordevice.volumeMounts .Values.email.customTemplates (and $mongodbTLS.enabled $mongodbTLS.existingSecret) }}
|
||||
{{- if or .Values.kerberoshub.monitordevice.volumeMounts (and $mongodbTLS.enabled $mongodbTLS.existingSecret) }}
|
||||
volumeMounts:
|
||||
{{- if .Values.email.customTemplates }}
|
||||
- name: email-templates
|
||||
mountPath: /mail/templates
|
||||
readOnly: true
|
||||
{{- end }}
|
||||
{{- with .Values.kerberoshub.monitordevice.volumeMounts}}
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
@@ -139,6 +129,16 @@ spec:
|
||||
value: "{{ .Values.email.mailgun.domain }}"
|
||||
- name: MAILGUN_API_KEY
|
||||
value: "{{ .Values.email.mailgun.apikey }}"
|
||||
|
||||
# Pusher (in-app notifications)
|
||||
- name: PUSHER_APP_ID
|
||||
value: {{ .Values.pusher.appId | quote }}
|
||||
- name: PUSHER_KEY
|
||||
value: {{ .Values.pusher.key | quote }}
|
||||
- name: PUSHER_SECRET
|
||||
value: {{ .Values.pusher.secret | quote }}
|
||||
- name: PUSHER_CLUSTER
|
||||
value: {{ .Values.pusher.cluster | quote }}
|
||||
{{- if .Values.kerberoshub.extraEnv }}
|
||||
{{- toYaml .Values.kerberoshub.extraEnv | nindent 12 }}
|
||||
{{- end }}
|
||||
|
||||
@@ -125,7 +125,6 @@ spec:
|
||||
value: "{{ .Values.opentelemetry.collector.endpoint }}"
|
||||
{{- include "hub.opentelemetry.samplerEnv" $ | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberoshub.services.workflows" "values" $.Values.kerberoshub.services.workflows) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -168,7 +168,6 @@ spec:
|
||||
value: "{{ .Values.opentelemetry.collector.endpoint }}"
|
||||
{{- include "hub.opentelemetry.samplerEnv" $ | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberospipeline.analysis" "values" $.Values.kerberospipeline.analysis) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -99,7 +99,6 @@ spec:
|
||||
value: "{{ .Values.opentelemetry.collector.endpoint }}"
|
||||
{{- include "hub.opentelemetry.samplerEnv" $ | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberospipeline.counting" "values" $.Values.kerberospipeline.counting) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -99,7 +99,6 @@ spec:
|
||||
value: "{{ .Values.opentelemetry.collector.endpoint }}"
|
||||
{{- include "hub.opentelemetry.samplerEnv" $ | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberospipeline.dominantColor" "values" $.Values.kerberospipeline.dominantColor) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -112,7 +112,6 @@ spec:
|
||||
value: "{{ .Values.opentelemetry.collector.endpoint }}"
|
||||
{{- include "hub.opentelemetry.samplerEnv" $ | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberospipeline.event" "values" $.Values.kerberospipeline.event) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -144,7 +144,6 @@ spec:
|
||||
value: "{{ .Values.opentelemetry.collector.endpoint }}"
|
||||
{{- include "hub.opentelemetry.samplerEnv" $ | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberospipeline.export" "values" $.Values.kerberospipeline.export) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -151,7 +151,6 @@ spec:
|
||||
value: "{{ .Values.opentelemetry.collector.endpoint }}"
|
||||
{{- include "hub.opentelemetry.samplerEnv" $ | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberospipeline.monitor" "values" $.Values.kerberospipeline.monitor) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -132,7 +132,6 @@ spec:
|
||||
value: "{{ .Values.opentelemetry.collector.endpoint }}"
|
||||
{{- include "hub.opentelemetry.samplerEnv" $ | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberospipeline.notifyTest" "values" $.Values.kerberospipeline.notifyTest) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -38,13 +38,8 @@ spec:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- $mongodbTLS := .Values.mongodb.tls }}
|
||||
{{- if or .Values.kerberospipeline.notify.volumes .Values.email.customTemplates (and $mongodbTLS.enabled $mongodbTLS.existingSecret) }}
|
||||
{{- if or .Values.kerberospipeline.notify.volumes (and $mongodbTLS.enabled $mongodbTLS.existingSecret) }}
|
||||
volumes:
|
||||
{{- if .Values.email.customTemplates }}
|
||||
- name: email-templates
|
||||
configMap:
|
||||
name: hub-email-templates
|
||||
{{- end }}
|
||||
{{- with .Values.kerberospipeline.notify.volumes }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
@@ -68,13 +63,8 @@ spec:
|
||||
resources:
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- if or .Values.kerberospipeline.notify.volumeMounts .Values.email.customTemplates (and $mongodbTLS.enabled $mongodbTLS.existingSecret) }}
|
||||
{{- if or .Values.kerberospipeline.notify.volumeMounts (and $mongodbTLS.enabled $mongodbTLS.existingSecret) }}
|
||||
volumeMounts:
|
||||
{{- if .Values.email.customTemplates }}
|
||||
- name: email-templates
|
||||
mountPath: /mail/templates
|
||||
readOnly: true
|
||||
{{- end }}
|
||||
{{- with .Values.kerberospipeline.notify.volumeMounts}}
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
@@ -196,7 +186,6 @@ spec:
|
||||
value: "{{ .Values.opentelemetry.collector.endpoint }}"
|
||||
{{- include "hub.opentelemetry.samplerEnv" $ | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberospipeline.notify" "values" $.Values.kerberospipeline.notify) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -108,7 +108,6 @@ spec:
|
||||
value: "{{ .Values.opentelemetry.collector.endpoint }}"
|
||||
{{- include "hub.opentelemetry.samplerEnv" $ | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberospipeline.sequence" "values" $.Values.kerberospipeline.sequence) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -118,7 +118,6 @@ spec:
|
||||
value: "{{ .Values.opentelemetry.collector.endpoint }}"
|
||||
{{- include "hub.opentelemetry.samplerEnv" $ | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberospipeline.sprite" "values" $.Values.kerberospipeline.sprite) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -116,7 +116,6 @@ spec:
|
||||
value: "{{ .Values.opentelemetry.collector.endpoint }}"
|
||||
{{- include "hub.opentelemetry.samplerEnv" $ | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberospipeline.throttler" "values" $.Values.kerberospipeline.throttler) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -109,8 +109,6 @@ spec:
|
||||
value: "{{ .Values.kerberospipeline.thumbnail.height }}"
|
||||
- name: THUMBNAIL_SKIP_NON_KEYFRAMES
|
||||
value: "{{ .Values.kerberospipeline.thumbnail.skipNonKeyframes }}"
|
||||
- name: THUMBNAIL_RANGE_DOWNLOAD
|
||||
value: "{{ .Values.kerberospipeline.thumbnail.rangeDownload | default false }}"
|
||||
|
||||
# There is an option to store the thumbnails in a storage provider in Kerberos Vault.
|
||||
# This will lower storage in mongodb.
|
||||
@@ -133,7 +131,6 @@ spec:
|
||||
value: "{{ .Values.opentelemetry.collector.endpoint }}"
|
||||
{{- include "hub.opentelemetry.samplerEnv" $ | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberospipeline.thumbnail" "values" $.Values.kerberospipeline.thumbnail) }}
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
|
||||
+12
-35
@@ -198,16 +198,6 @@ mqtt:
|
||||
legacy:
|
||||
host: ""
|
||||
port: ""
|
||||
# Signals: hub-api publishes a content-free message (only {"at": time}, not
|
||||
# retained) on an opaque topic when something happens, for listeners such as
|
||||
# cha-ching that play a sound on a speaker. The broker login is
|
||||
# mqtt.username / mqtt.password. Off unless enabled is true, uri is set and
|
||||
# the event has a topic: enabled switches every event at once, each topic
|
||||
# only says where its event goes.
|
||||
signals:
|
||||
enabled: false # Sets MQTT_SIGNALS_ENABLED on hub-api.
|
||||
uri: "" # Broker for hub-api, e.g. tcp://mqtt.kerberos.io:1883 or wss://mqtt.kerberos.io:8443/mqtt (MQTT_URI).
|
||||
registrationTopic: "" # Signalled after a successful /register: an opaque identifier, e.g. sound/a31dc38882fd5460 (MQTT_REGISTRATION_TOPIC).
|
||||
################################################################
|
||||
# AMQP configuration (asynchronous processing for microservices)
|
||||
#
|
||||
@@ -258,6 +248,18 @@ turn:
|
||||
username: "username1"
|
||||
password: "password1"
|
||||
############################################
|
||||
# Pusher (in-app notifications)
|
||||
#
|
||||
# Usecases:
|
||||
# - Browser notifications: hub-api (a new camera was added) and the device
|
||||
# monitor (a camera changed status) trigger an event on the user's channel.
|
||||
############################################
|
||||
pusher:
|
||||
appId: ""
|
||||
key: ""
|
||||
secret: ""
|
||||
cluster: "eu"
|
||||
############################################
|
||||
# OpenTelemetry is used for distributed tracing and monitoring.
|
||||
# More information can be found at https://opentelemetry.io/docs/
|
||||
############################################
|
||||
@@ -1230,7 +1232,6 @@ kerberoshub:
|
||||
tag: "v1.0.49"
|
||||
replicas: 1 # Number of pods for the service.
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
extraEnv: [] # Extra container env (name + value or valueFrom), rendered after the chart's own; do not repeat a variable the chart sets.
|
||||
# Optional extra volumes / volumeMounts for this deployment (empty = none).
|
||||
#volumes:
|
||||
# - name: extra
|
||||
@@ -1400,7 +1401,6 @@ kerberospipeline:
|
||||
tag: "v1.3.11"
|
||||
replicas: 1 # Number of pods for the service.
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
extraEnv: [] # Extra container env (name + value or valueFrom), rendered after the chart's own; do not repeat a variable the chart sets.
|
||||
# Optional extra volumes / volumeMounts for this deployment (empty = none).
|
||||
#volumes:
|
||||
# - name: extra
|
||||
@@ -1422,7 +1422,6 @@ kerberospipeline:
|
||||
tag: "v1.3.30"
|
||||
replicas: 1 # Number of pods for the service.
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
extraEnv: [] # Extra container env (name + value or valueFrom), rendered after the chart's own; do not repeat a variable the chart sets.
|
||||
# Optional extra volumes / volumeMounts for this deployment (empty = none).
|
||||
#volumes:
|
||||
# - name: extra
|
||||
@@ -1444,7 +1443,6 @@ kerberospipeline:
|
||||
tag: "v1.7.15"
|
||||
replicas: 1 # Number of pods for the service.
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
extraEnv: [] # Extra container env (name + value or valueFrom), rendered after the chart's own; do not repeat a variable the chart sets.
|
||||
# Optional extra volumes / volumeMounts for this deployment (empty = none).
|
||||
#volumes:
|
||||
# - name: extra
|
||||
@@ -1468,7 +1466,6 @@ kerberospipeline:
|
||||
tag: "v1.2.11"
|
||||
replicas: 1 # Number of pods for the service.
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
extraEnv: [] # Extra container env (name + value or valueFrom), rendered after the chart's own; do not repeat a variable the chart sets.
|
||||
# Optional extra volumes / volumeMounts for this deployment (empty = none).
|
||||
#volumes:
|
||||
# - name: extra
|
||||
@@ -1494,7 +1491,6 @@ kerberospipeline:
|
||||
audit:
|
||||
enabled: true
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
extraEnv: [] # Extra container env (name + value or valueFrom), rendered after the chart's own; do not repeat a variable the chart sets.
|
||||
logLevel: "info" # possible values: trace, debug, info, warn, error
|
||||
notificationExpiryMinutes: "15" # Maximum recording age before notification delivery; 0 disables expiry.
|
||||
resources:
|
||||
@@ -1515,7 +1511,6 @@ kerberospipeline:
|
||||
tag: "v1.2.8"
|
||||
replicas: 1 # Number of pods for the service.
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
extraEnv: [] # Extra container env (name + value or valueFrom), rendered after the chart's own; do not repeat a variable the chart sets.
|
||||
resources:
|
||||
requests:
|
||||
memory: 10Mi
|
||||
@@ -1537,7 +1532,6 @@ kerberospipeline:
|
||||
tag: "v1.8.31"
|
||||
replicas: 1 # Number of pods for the service.
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
extraEnv: [] # Extra container env (name + value or valueFrom), rendered after the chart's own; do not repeat a variable the chart sets.
|
||||
# Optional extra volumes / volumeMounts for this deployment (empty = none).
|
||||
#volumes:
|
||||
# - name: extra
|
||||
@@ -1580,7 +1574,6 @@ kerberospipeline:
|
||||
tag: "v2.0.11"
|
||||
replicas: 3 # Number of pods for the service.
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
extraEnv: [] # Extra container env (name + value or valueFrom), rendered after the chart's own; do not repeat a variable the chart sets.
|
||||
# Optional extra volumes / volumeMounts for this deployment (empty = none).
|
||||
#volumes:
|
||||
# - name: extra
|
||||
@@ -1608,7 +1601,6 @@ kerberospipeline:
|
||||
replicas: 2 # Number of pods for the service.
|
||||
prefetchCount: 0 # Max unacknowledged RabbitMQ messages per pod; 0 = service default (5).
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
extraEnv: [] # Extra container env (name + value or valueFrom), rendered after the chart's own; do not repeat a variable the chart sets.
|
||||
# Optional extra volumes / volumeMounts for this deployment (empty = none).
|
||||
#volumes:
|
||||
# - name: extra
|
||||
@@ -1621,7 +1613,6 @@ kerberospipeline:
|
||||
width: "600"
|
||||
height: "-1"
|
||||
skipNonKeyframes: true # Decode keyframes only for faster extraction; disable when exact-frame output is required.
|
||||
rangeDownload: false # Download only the fragments around the requested frame (HTTP Range) instead of the whole recording; needs hub-pipeline-thumbnail with THUMBNAIL_RANGE_DOWNLOAD support.
|
||||
kerberosvault:
|
||||
enabled: true # If you want to use Kerberos Vault to store the thumbnails
|
||||
resources:
|
||||
@@ -1642,7 +1633,6 @@ kerberospipeline:
|
||||
tag: "v2.0.7"
|
||||
replicas: 1 # Number of pods for the service.
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
extraEnv: [] # Extra container env (name + value or valueFrom), rendered after the chart's own; do not repeat a variable the chart sets.
|
||||
# Optional extra volumes / volumeMounts for this deployment (empty = none).
|
||||
#volumes:
|
||||
# - name: extra
|
||||
@@ -1666,7 +1656,6 @@ kerberospipeline:
|
||||
replicas: 5 # Number of pods for the service.
|
||||
prefetchCount: 0 # Max unacknowledged RabbitMQ messages per pod; 0 = service default (5).
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
extraEnv: [] # Extra container env (name + value or valueFrom), rendered after the chart's own; do not repeat a variable the chart sets.
|
||||
# Optional extra volumes / volumeMounts for this deployment (empty = none).
|
||||
#volumes:
|
||||
# - name: extra
|
||||
@@ -1693,7 +1682,6 @@ kerberospipeline:
|
||||
tag: "v1.2.23"
|
||||
replicas: 2 # Number of pods for the service.
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
extraEnv: [] # Extra container env (name + value or valueFrom), rendered after the chart's own; do not repeat a variable the chart sets.
|
||||
logLevel: "info" # possible values: trace, debug, info, warn, error
|
||||
# playerAssetsPath: "/custom/player-assets/" # Path to custom player.html template (overrides the embedded default)
|
||||
# volumeMounts:
|
||||
@@ -1761,14 +1749,3 @@ email:
|
||||
# Empty uses "[Device] A camera stopped recording", "[Device] A camera is
|
||||
# recording again" and their forms for several cameras.
|
||||
recordingTitle: ""
|
||||
# Email templates of this deployment, by file name: <template>.html and
|
||||
# <template>.txt, for example detection.html. They are mounted at
|
||||
# /mail/templates on hub-api, pipe-notify and hub-monitor-device, and each
|
||||
# replaces the built-in template with the same name when sending with SMTP.
|
||||
# Templates not listed keep the built-in version. Start from
|
||||
# custom-layout/templates.
|
||||
customTemplates: {}
|
||||
# detection.html: |
|
||||
# <html>...{{text}}...{{link}}...</html>
|
||||
# detection.txt: |
|
||||
# {{text}} {{link}}
|
||||
|
||||
Reference in New Issue
Block a user