You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kafka/README.md
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,31 +51,47 @@ Kafka external access needs one stable address per broker. Enable per-broker Loa
51
51
kafka:
52
52
externalBrokerServices:
53
53
enabled: true
54
+
```
55
+
56
+
By default, the chart creates a ServiceAccount plus namespaced RBAC, then each broker initContainer waits for its own LoadBalancer Service address and uses it as the external advertised listener. This avoids the install-then-upgrade flow for dynamically assigned LoadBalancer IPs.
57
+
58
+
If you want to disable Kubernetes API discovery and provide static advertised hosts yourself:
59
+
60
+
```yaml
61
+
kafka:
62
+
externalBrokerServices:
63
+
enabled: true
64
+
autoDiscovery:
65
+
enabled: false
54
66
advertisedHosts:
55
67
- 203.0.113.10
56
68
- 203.0.113.11
57
69
```
58
70
59
-
For multi-cluster mode, configure the list per cluster:
71
+
For multi-cluster mode, configure static lists per cluster only when `autoDiscovery.enabled=false`:
60
72
61
73
```yaml
62
74
kafka:
63
75
clusters:
64
76
- name: primary
65
77
clusterId: MkU3OEVBNTcwNTJENDM2Qk
66
78
externalBrokerServices:
79
+
autoDiscovery:
80
+
enabled: false
67
81
advertisedHosts:
68
82
- 203.0.113.10
69
83
- 203.0.113.11
70
84
- name: standby
71
85
clusterId: zlFiTJelTOuhnklFwLWixw
72
86
externalBrokerServices:
87
+
autoDiscovery:
88
+
enabled: false
73
89
advertisedHosts:
74
90
- 203.0.113.12
75
91
- 203.0.113.13
76
92
```
77
93
78
-
If your cloud provider assigns IPs dynamically, install once with external services enabled, read the assigned addresses, put those addresses into `advertisedHosts`, then run `helm upgrade`. For production, prefer reserving static IPs and setting `loadBalancerIPs` plus matching `advertisedHosts` up front when your provider supports `loadBalancerIP`.
94
+
For production, static LoadBalancer IPs are still preferable when your provider supports them. Set `loadBalancerIPs` to reserve/request the service addresses. You can keep auto discovery enabled so brokers still read the actual assigned addresses at startup.
0 commit comments