netbox: Fix ingress values to be more correct
This commit is contained in:
parent
e600f836d1
commit
6e3b46059f
2 changed files with 13 additions and 3 deletions
|
@ -29,6 +29,9 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
rules:
|
rules:
|
||||||
|
{{- if .Values.ingress.rules }}
|
||||||
|
{{ toYaml .Values.ingress.rules | nindent 4 }}
|
||||||
|
{{- else }}
|
||||||
- host: {{ .Values.ingress.host | quote }}
|
- host: {{ .Values.ingress.host | quote }}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
|
@ -36,4 +39,5 @@ spec:
|
||||||
backend:
|
backend:
|
||||||
serviceName: {{ $fullName }}
|
serviceName: {{ $fullName }}
|
||||||
servicePort: http
|
servicePort: http
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -22,9 +22,15 @@ ingress:
|
||||||
annotations: {}
|
annotations: {}
|
||||||
# kubernetes.io/ingress.class: nginx
|
# kubernetes.io/ingress.class: nginx
|
||||||
# kubernetes.io/tls-acme: "true"
|
# kubernetes.io/tls-acme: "true"
|
||||||
hosts:
|
host: chart-example.local
|
||||||
- host: chart-example.local
|
# Can also be specified by entering rules directly;
|
||||||
paths: []
|
# rules:
|
||||||
|
# - host: chart-example.local
|
||||||
|
# paths:
|
||||||
|
# - path: /
|
||||||
|
# backend:
|
||||||
|
# serviceName: netbox-example
|
||||||
|
# servicePort: http
|
||||||
|
|
||||||
tls: []
|
tls: []
|
||||||
# - secretName: chart-example-tls
|
# - secretName: chart-example-tls
|
||||||
|
|
Loading…
Reference in a new issue