refactoring frigate ingress (#50)

* frigate helm chart

Signed-off-by: Jeff Billimek <jeff@billimek.com>

* remove trailing spaces

* bump chart version

* refactoring frigate ingress
This commit is contained in:
Jeff Billimek 2019-07-26 23:39:18 -04:00 committed by GitHub
parent 201b2a2dc9
commit d3b3ef83a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 10 deletions

View File

@ -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.1 version: 0.1.2
keywords: keywords:
- tensorflow - tensorflow
- coral - coral

View File

@ -1,5 +1,6 @@
{{- if .Values.ingress.enabled -}} {{- if .Values.ingress.enabled -}}
{{- $fullName := include "frigate.fullname" . -}} {{- $fullName := include "frigate.fullname" . -}}
{{- $ingressPath := .Values.ingress.path -}}
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
@ -23,14 +24,12 @@ spec:
{{- end }} {{- end }}
rules: rules:
{{- range .Values.ingress.hosts }} {{- range .Values.ingress.hosts }}
- host: {{ .host | quote }} - host: {{ . | quote }}
http: http:
paths: paths:
{{- range .paths }} - path: {{ $ingressPath }}
- path: {{ . }}
backend: backend:
serviceName: {{ $fullName }} serviceName: {{ $fullName }}
servicePort: http servicePort: http
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -105,16 +105,14 @@ service:
## Set the externalTrafficPolicy in the Service to either Cluster or Local ## Set the externalTrafficPolicy in the Service to either Cluster or Local
# externalTrafficPolicy: Cluster # externalTrafficPolicy: Cluster
ingress: ingress:
enabled: false enabled: false
annotations: {} annotations: {}
# kubernetes.io/ingress.class: nginx # kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true" # kubernetes.io/tls-acme: "true"
path: /
hosts: hosts:
- host: chart-example.local - chart-example.local
paths: []
tls: [] tls: []
# - secretName: chart-example-tls # - secretName: chart-example-tls
# hosts: # hosts: