From e30c8178f8edfdf895cf83e6a7787fb6131e24f8 Mon Sep 17 00:00:00 2001 From: shivani446 <123355816+shivani446@users.noreply.github.com> Date: Thu, 1 Jun 2023 06:21:22 +0530 Subject: [PATCH] Feat/frigate (#33) * feat:added frigate chart * modified README.md * modified chart.yaml * modified values.yaml * changed storageclass * changed values.yaml * changed values.yaml * changed values.yaml * changed values.yaml * Storageclass * fix: removed configmap and added secret * fix: changed chart version * fix: changed secret --------- Signed-off-by: shivani446 <123355816+shivani446@users.noreply.github.com> --- charts/frigate/Chart.yaml | 2 +- charts/frigate/templates/Statefulset.yaml | 4 ++-- charts/frigate/templates/secert.yaml | 13 +++++++++++++ 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 charts/frigate/templates/secert.yaml diff --git a/charts/frigate/Chart.yaml b/charts/frigate/Chart.yaml index 6bb8168..d29c159 100644 --- a/charts/frigate/Chart.yaml +++ b/charts/frigate/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: "0.12.0" description: NVR With Realtime Object Detection for IP Cameras name: frigate -version: 1.0.0 +version: 1.0.1 keywords: - tensorflow - coral diff --git a/charts/frigate/templates/Statefulset.yaml b/charts/frigate/templates/Statefulset.yaml index 91262e6..ba48dca 100644 --- a/charts/frigate/templates/Statefulset.yaml +++ b/charts/frigate/templates/Statefulset.yaml @@ -120,8 +120,8 @@ spec: {{- end }} volumes: - name: config - configMap: - name: {{ template "frigate.fullname" . }} + secret: + secretName: {{ template "frigate.fullname" . }} {{- if .Values.coral.enabled }} - name: coral-dev hostPath: diff --git a/charts/frigate/templates/secert.yaml b/charts/frigate/templates/secert.yaml new file mode 100644 index 0000000..216925f --- /dev/null +++ b/charts/frigate/templates/secert.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Secret +metadata: + name: {{ template "frigate.fullname" . }} + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: {{ include "frigate.name" . }} + helm.sh/chart: {{ include "frigate.chart" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/managed-by: {{ .Release.Service }} +stringData: + config.yml: | +{{ .Values.config | indent 4 }}