[stable/rabbitmq] Explicitly unset nodePort in ClusterIP (#17176)

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@vmware.com>
This commit is contained in:
Javier J. Salmerón-García
2019-09-18 01:53:29 -07:00
committed by Kubernetes Prow Robot
parent 1e0ceb73bb
commit 2f9620859c
2 changed files with 16 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: rabbitmq
version: 6.7.0
version: 6.7.1
appVersion: 3.7.17
description: Open source message broker software that implements the Advanced Message Queuing Protocol (AMQP)
keywords:
+15 -1
View File
@@ -28,10 +28,15 @@ spec:
- name: epmd
port: 4369
targetPort: epmd
{{- if (eq .Values.service.type "ClusterIP") }}
nodePort: null
{{- end }}
- name: amqp
port: {{ .Values.service.port }}
targetPort: amqp
{{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePort))) }}
{{- if (eq .Values.service.type "ClusterIP") }}
nodePort: null
{{- else if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePort))) }}
nodePort: {{ .Values.service.nodePort }}
{{- end }}
{{- if .Values.rabbitmq.tls.enabled }}
@@ -45,13 +50,22 @@ spec:
- name: dist
port: {{ .Values.service.distPort }}
targetPort: dist
{{- if (eq .Values.service.type "ClusterIP") }}
nodePort: null
{{- end }}
- name: stats
port: {{ .Values.service.managerPort }}
targetPort: stats
{{- if (eq .Values.service.type "ClusterIP") }}
nodePort: null
{{- end }}
{{- if .Values.metrics.enabled }}
- name: metrics
port: {{ .Values.metrics.port }}
targetPort: 9090
{{- if (eq .Values.service.type "ClusterIP") }}
nodePort: null
{{- end }}
{{- end }}
selector:
app: {{ template "rabbitmq.name" . }}