From d70b666d248d5ab3e7c1e3b1b4dba4db525a751d Mon Sep 17 00:00:00 2001 From: ycz008 Date: Thu, 18 Jan 2024 17:35:37 +0800 Subject: [PATCH] open kafka external ip --- prod-upgrade/kafka/kafka.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/prod-upgrade/kafka/kafka.yaml b/prod-upgrade/kafka/kafka.yaml index d0452d1..2e6aa44 100644 --- a/prod-upgrade/kafka/kafka.yaml +++ b/prod-upgrade/kafka/kafka.yaml @@ -65,6 +65,13 @@ spec: name: kafka-prod metricReporter: enabled: true + listeners: + external: + externalAccess: + type: nodePort + nodePort: + host: kafka.beaconfireinc.com + nodePortOffset: 30001 # dependencies: # 多个kakfa集群复用zk # zookeeper: @@ -92,4 +99,9 @@ spec: - mq image: application: confluentinc/cp-schema-registry:7.4.0 - init: confluentinc/confluent-init-container:2.6.0 \ No newline at end of file + init: confluentinc/confluent-init-container:2.6.0 +externalAccess: + type: nodePort + nodePort: + host: kafka.beaconfireinc.com + nodePortOffset: 30005 \ No newline at end of file