Skip to main content
Version: 22.3

Configure Listeners in Kubernetes

You can customize the advertised ports for each listener on all Redpanda brokers, or disable listeners altogether.

Customize the advertised ports

To customize the advertised ports for each listener, replace <port> with the port that you want to use.

note

Redpanda doesn’t validate the configured port numbers. Make sure to verify the following:

  • Your configured port numbers are within the range that is assigned for node ports in your Kubernetes cluster.
  • Your Kubernetes cluster is accessible through your desired node port range. You may need to edit your inbound firewall rules.
  • Your configured port numbers are not in use by any other service.
custom-admin-port.yaml
listeners:
admin:
external:
default:
advertisedPorts:
- <port>
helm upgrade --install redpanda redpanda/redpanda -n redpanda --create-namespace \
--values custom-admin-port.yaml

Disable external access

You can disable external access for all listeners or for individual listeners.

disable-external-access.yaml
external:
enabled: false
helm upgrade --install redpanda redpanda/redpanda -n redpanda --create-namespace \
--values disable-external-access.yaml

Next steps

Configure security for your listeners.

What do you like about this doc?




Optional: Share your email address if we can contact you about your feedback.

Let us know what we do well: