Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[helm] support custom annotations for ingress
  • Loading branch information
gmsantos authored and romainr committed May 6, 2021
1 parent c40e996 commit 9a24301
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/kubernetes/helm/hue/templates/ingress-http.yaml
Expand Up @@ -9,6 +9,9 @@ metadata:
nginx.ingress.kubernetes.io/session-cookie-name: "hue-balancer-ingress"
nginx.ingress.kubernetes.io/session-cookie-expires: "172800"
nginx.ingress.kubernetes.io/session-cookie-max-age: "172800"
{{- with .Values.ingress.annotations }}
{{ toYaml . | indent 4 }}
{{- end }}
spec:
rules:
- host: {{ .Values.ingress.domain }}
Expand Down
3 changes: 3 additions & 0 deletions tools/kubernetes/helm/hue/templates/ingress-https.yaml
Expand Up @@ -18,6 +18,9 @@ metadata:
nginx.ingress.kubernetes.io/auth-secret: basic-auth-hue
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required'
{{ end }}
{{- with .Values.ingress.annotations }}
{{ toYaml . | indent 4 }}
{{- end }}
spec:
rules:
- host: {{ .Values.ingress.domain }}
Expand Down
3 changes: 3 additions & 0 deletions tools/kubernetes/helm/hue/templates/ingress-traefik-hue.yaml
Expand Up @@ -5,6 +5,9 @@ metadata:
name: hue
annotations:
kubernetes.io/ingress.class: traefik
{{- with .Values.ingress.annotations }}
{{ toYaml . | indent 4 }}
{{- end }}
spec:
rules:
- host: {{ .Values.domain }}
Expand Down
1 change: 1 addition & 0 deletions tools/kubernetes/helm/hue/values.yaml
Expand Up @@ -65,6 +65,7 @@ ingress:
domain: "demo.gethue.com"
# extraHosts:
# - "demo.hue.com"
# annotations: {}
email: "team@gethue.com"
loadBalancerIp: "127.0.0.1"
aws:
Expand Down

0 comments on commit 9a24301

Please sign in to comment.