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"
description: Realtime object detection on RTSP cameras with the Google Coral
name: frigate
version: 0.1.1
version: 0.1.2
keywords:
- tensorflow
- coral

View File

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

View File

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