summaryrefslogtreecommitdiffstats
path: root/kubernetes/dmaap/components/dmaap-bc/templates
diff options
context:
space:
mode:
authorefiacor <fiachra.corcoran@est.tech>2019-05-14 09:10:20 +0000
committerefiacor <fiachra.corcoran@est.tech>2019-05-14 09:10:20 +0000
commit16669c578d7a3938a0aff5830e7f608e8d8eabdf (patch)
tree591e162d63792dd45b68aba21b4950f666e103a4 /kubernetes/dmaap/components/dmaap-bc/templates
parent294fadee5e72be0ec54485a56471906a83195d50 (diff)
Disable unsecure DMaaP NodePorts
Change-Id: I6d59e09b0273241c5c98cc60e323940bf84bacdd Issue-ID: DMAAP-1152 Signed-off-by: efiacor <fiachra.corcoran@est.tech>
Diffstat (limited to 'kubernetes/dmaap/components/dmaap-bc/templates')
-rw-r--r--kubernetes/dmaap/components/dmaap-bc/templates/service.yaml2
1 files changed, 2 insertions, 0 deletions
diff --git a/kubernetes/dmaap/components/dmaap-bc/templates/service.yaml b/kubernetes/dmaap/components/dmaap-bc/templates/service.yaml
index 4b51d44fa2..200988a3e2 100644
--- a/kubernetes/dmaap/components/dmaap-bc/templates/service.yaml
+++ b/kubernetes/dmaap/components/dmaap-bc/templates/service.yaml
@@ -27,10 +27,12 @@ spec:
type: {{ .Values.service.type }}
ports:
{{if eq .Values.service.type "NodePort" -}}
+ {{- if .Values.global.allow_http }}
- port: {{ .Values.service.externalPort }}
targetPort: {{ .Values.service.internalPort }}
nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort }}
name: {{ .Values.service.name }}
+ {{- end}}
- port: {{ .Values.service.externalPort2 }}
targetPort: {{ .Values.service.internalPort2 }}
nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort2 }}