Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
[stable/prometheus-operator] prevent nodePort from constantly changin…
Browse files Browse the repository at this point in the history
…g when using a nodePort service on AlertManager and Prometheus

Signed-off-by: Mickaël Le Baillif <mickael.le.baillif@gmail.com>
  • Loading branch information
demikl committed Jul 23, 2020
1 parent ebd3908 commit 3d940df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
{{- end }}
ports:
- name: {{ .Values.alertmanager.alertmanagerSpec.portName }}
{{- if eq .Values.alertmanager.service.type "NodePort" }}
{{- if eq .Values.alertmanager.service.type "NodePort" | and .Values.alertmanager.service.nodePort }}
nodePort: {{ .Values.alertmanager.service.nodePort }}
{{- end }}
port: {{ .Values.alertmanager.service.port }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
{{- end }}
ports:
- name: {{ .Values.prometheus.prometheusSpec.portName }}
{{- if eq .Values.prometheus.service.type "NodePort" }}
{{- if eq .Values.prometheus.service.type "NodePort" | and .Values.prometheus.service.nodePort }}
nodePort: {{ .Values.prometheus.service.nodePort }}
{{- end }}
port: {{ .Values.prometheus.service.port }}
Expand Down

0 comments on commit 3d940df

Please sign in to comment.