From 16669c578d7a3938a0aff5830e7f608e8d8eabdf Mon Sep 17 00:00:00 2001 From: efiacor Date: Tue, 14 May 2019 09:10:20 +0000 Subject: Disable unsecure DMaaP NodePorts Change-Id: I6d59e09b0273241c5c98cc60e323940bf84bacdd Issue-ID: DMAAP-1152 Signed-off-by: efiacor --- kubernetes/dmaap/components/message-router/templates/service.yaml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kubernetes/dmaap/components/message-router/templates') diff --git a/kubernetes/dmaap/components/message-router/templates/service.yaml b/kubernetes/dmaap/components/message-router/templates/service.yaml index dfd90b28f2..1bce881a8e 100644 --- a/kubernetes/dmaap/components/message-router/templates/service.yaml +++ b/kubernetes/dmaap/components/message-router/templates/service.yaml @@ -39,9 +39,11 @@ spec: type: {{ .Values.service.type }} ports: {{if eq .Values.service.type "NodePort" -}} + {{- if .Values.global.allow_http }} - port: {{ .Values.service.externalPort }} nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort }} name: {{ .Values.service.portName }}-{{ .Values.service.externalPort }} + {{- end}} - port: {{ .Values.service.externalPort2 }} nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort2 }} name: {{ .Values.service.portName }}-{{ .Values.service.externalPort2 }} -- cgit 1.2.3-korg