mirror of
https://github.com/bitnami/charts.git
synced 2026-03-16 06:47:30 +08:00
[bitnami/nats] Fix monitoring ingress endpoint (#6167)
This commit is contained in:
@@ -24,4 +24,4 @@ name: nats
|
||||
sources:
|
||||
- https://github.com/bitnami/bitnami-docker-nats
|
||||
- https://nats.io/
|
||||
version: 6.2.5
|
||||
version: 6.2.6
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
{{- if .Values.ingress.enabled }}
|
||||
{{- $fullName := include "common.names.fullname" . -}}
|
||||
{{- $ingressName := printf "%s-monitoring" $fullName -}}
|
||||
apiVersion: {{ include "common.capabilities.ingress.apiVersion" . }}
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ printf "%s-monitoring" (include "common.names.fullname" .) }}
|
||||
name: {{ $ingressName }}
|
||||
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
||||
{{- if .Values.commonLabels }}
|
||||
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
||||
@@ -32,7 +34,7 @@ spec:
|
||||
{{- if eq "true" (include "common.ingress.supportsPathType" .) }}
|
||||
pathType: {{ .Values.ingress.pathType }}
|
||||
{{- end }}
|
||||
backend: {{- include "common.ingress.backend" (dict "serviceName" (include "common.names.fullname" .) "servicePort" "tcp-monitoring" "context" $) | nindent 14 }}
|
||||
backend: {{- include "common.ingress.backend" (dict "serviceName" $ingressName "servicePort" "tcp-monitoring" "context" $) | nindent 14 }}
|
||||
{{- end }}
|
||||
{{- range .Values.ingress.extraHosts }}
|
||||
- host: {{ .name | quote }}
|
||||
@@ -42,7 +44,7 @@ spec:
|
||||
{{- if eq "true" (include "common.ingress.supportsPathType" $) }}
|
||||
pathType: {{ default "ImplementationSpecific" .pathType }}
|
||||
{{- end }}
|
||||
backend: {{- include "common.ingress.backend" (dict "serviceName" (include "common.names.fullname" $) "servicePort" "tcp-monitoring" "context" $) | nindent 14 }}
|
||||
backend: {{- include "common.ingress.backend" (dict "serviceName" $ingressName "servicePort" "tcp-monitoring" "context" $) | nindent 14 }}
|
||||
{{- end }}
|
||||
{{- if or .Values.ingress.tls .Values.ingress.extraTls }}
|
||||
tls:
|
||||
|
||||
Reference in New Issue
Block a user