diff options
author | efiacor <fiachra.corcoran@est.tech> | 2019-05-14 09:10:20 +0000 |
---|---|---|
committer | efiacor <fiachra.corcoran@est.tech> | 2019-05-14 09:10:20 +0000 |
commit | 16669c578d7a3938a0aff5830e7f608e8d8eabdf (patch) | |
tree | 591e162d63792dd45b68aba21b4950f666e103a4 /kubernetes/dmaap/components/dmaap-dr-node | |
parent | 294fadee5e72be0ec54485a56471906a83195d50 (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-dr-node')
-rw-r--r-- | kubernetes/dmaap/components/dmaap-dr-node/templates/service.yaml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kubernetes/dmaap/components/dmaap-dr-node/templates/service.yaml b/kubernetes/dmaap/components/dmaap-dr-node/templates/service.yaml index c935ce4ca6..633898c213 100644 --- a/kubernetes/dmaap/components/dmaap-dr-node/templates/service.yaml +++ b/kubernetes/dmaap/components/dmaap-dr-node/templates/service.yaml @@ -28,10 +28,12 @@ spec: type: {{.Values.config.dmaapDrNode.servicetype}} ports: {{if eq .Values.config.dmaapDrNode.servicetype "NodePort" -}} + {{- if .Values.global.allow_http }} - port: {{.Values.config.dmaapDrNode.externalPort}} targetPort: {{.Values.config.dmaapDrNode.internalPort}} nodePort: {{ .Values.global.nodePortPrefixExt | default .Values.nodePortPrefixExt }}{{.Values.config.dmaapDrNode.nodePort}} name: {{.Values.config.dmaapDrNode.name}} + {{- end}} - port: {{.Values.config.dmaapDrNode.externalPort2}} targetPort: {{.Values.config.dmaapDrNode.internalPort2}} nodePort: {{ .Values.global.nodePortPrefixExt | default .Values.nodePortPrefixExt }}{{.Values.config.dmaapDrNode.nodePort2}} |