mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 23:49:12 +00:00
Frigate (#51)
* frigate helm chart Signed-off-by: Jeff Billimek <jeff@billimek.com> * remove trailing spaces * bump chart version * refactoring frigate ingress * refactoring configmap * refactoring configmap
This commit is contained in:
parent
d3b3ef83a9
commit
83f7e4556c
@ -2,7 +2,7 @@ apiVersion: v1
|
|||||||
appVersion: "0.2.0-beta"
|
appVersion: "0.2.0-beta"
|
||||||
description: Realtime object detection on RTSP cameras with the Google Coral
|
description: Realtime object detection on RTSP cameras with the Google Coral
|
||||||
name: frigate
|
name: frigate
|
||||||
version: 0.1.2
|
version: 0.1.3
|
||||||
keywords:
|
keywords:
|
||||||
- tensorflow
|
- tensorflow
|
||||||
- coral
|
- coral
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
1. Get the application URL by running these commands:
|
1. Get the application URL by running these commands:
|
||||||
{{- if .Values.ingress.enabled }}
|
{{- if .Values.ingress.enabled }}
|
||||||
{{- range $host := .Values.ingress.hosts }}
|
{{- range .Values.ingress.hosts }}
|
||||||
{{- range .paths }}
|
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ . }}{{ $.Values.ingress.path }}
|
||||||
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ . }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else if contains "NodePort" .Values.service.type }}
|
{{- else if contains "NodePort" .Values.service.type }}
|
||||||
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "frigate.fullname" . }})
|
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "frigate.fullname" . }})
|
||||||
@ -11,11 +9,11 @@
|
|||||||
echo http://$NODE_IP:$NODE_PORT
|
echo http://$NODE_IP:$NODE_PORT
|
||||||
{{- else if contains "LoadBalancer" .Values.service.type }}
|
{{- else if contains "LoadBalancer" .Values.service.type }}
|
||||||
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
|
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
|
||||||
You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "frigate.fullname" . }}'
|
You can watch the status of by running 'kubectl get svc -w {{ include "frigate.fullname" . }}'
|
||||||
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "frigate.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
|
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "frigate.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
|
||||||
echo http://$SERVICE_IP:{{ .Values.service.port }}
|
echo http://$SERVICE_IP:{{ .Values.service.port }}
|
||||||
{{- else if contains "ClusterIP" .Values.service.type }}
|
{{- else if contains "ClusterIP" .Values.service.type }}
|
||||||
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "frigate.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
|
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "frigate.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
|
||||||
echo "Visit http://127.0.0.1:8080 to use your application"
|
echo "Visit http://127.0.0.1:5000 to use your application"
|
||||||
kubectl port-forward $POD_NAME 8080:80
|
kubectl port-forward $POD_NAME 5000:5000
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -10,4 +10,4 @@ metadata:
|
|||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
data:
|
data:
|
||||||
config.yml: |
|
config.yml: |
|
||||||
{{ toYaml .Values.config | default "{}" | indent 4 }}
|
{{ .Values.config | indent 4 }}
|
||||||
|
@ -19,7 +19,7 @@ nameOverride: ""
|
|||||||
fullnameOverride: ""
|
fullnameOverride: ""
|
||||||
|
|
||||||
# frigate configuration - see https://github.com/blakeblackshear/frigate/blob/master/config/config.yml for example
|
# frigate configuration - see https://github.com/blakeblackshear/frigate/blob/master/config/config.yml for example
|
||||||
config:
|
config: |
|
||||||
mqtt:
|
mqtt:
|
||||||
host: mqtt.server.com
|
host: mqtt.server.com
|
||||||
topic_prefix: frigate
|
topic_prefix: frigate
|
||||||
|
Loading…
Reference in New Issue
Block a user