cp-helm-charts
cp-helm-charts copied to clipboard
NodePort service.yaml for cp-kafka uses incorrect value for targetPort
The nodeport-service.yaml file in cp-kafka/templates contains an incorrect value for targetPort.
According to the NodePort definition from kubernetes.io by default and for convenience, the targetPort is set to the same value as the port field for a NodePort.
However, in nodeport-service.yaml, I see the following
spec:
type: NodePort
ports:
- name: external-broker
port: {{ $servicePort }}
targetPort: {{ $externalListenerPort }}
nodePort: {{ $externalListenerPort }}
protocol: TCP
This should be changed to
spec:
type: NodePort
ports:
- name: external-broker
port: {{ $servicePort }}
targetPort: {{ $servicePort }}
nodePort: {{ $externalListenerPort }}
protocol: TCP
After this change, all nodeports were functioning OK for us.