confluentinc / confluentinc/confluent-kubernetes-examples

Support for static IPs - LoadBalancer i.e. MetalLB

Open
#352 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
72
Forks
201
Avg merge
10h 2m
Merged PRs (30d)
2

Description

can you add example how can i specify static IPs for brokers when using LoadBalancer?

dynamic assignment is working with this config

CFK part of config
```
apiVersion: platform.confluent.io/v1beta1
kind: Kafka
...
listeners:
external:
externalAccess:
type: loadBalancer
loadBalancer:
domain: mydomain.com

```

metallb config
```
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
namespace: metallb-system
name: config
labels:
zone: east
spec:
addresses:
- 192.168.1.200-192.168.1.250

apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
name: first-advertisement
namespace: metallb-system
spec:
ipAddressPools:
- config

```
```
[root@master01 kafka]# kubectl get svc -n confluent | grep Load
kafka-0-lb LoadBalancer 10.43.157.33 192.168.1.201 9092:31329/TCP 3d5h
kafka-1-lb LoadBalancer 10.43.115.81 192.168.1.203 9092:31314/TCP 8h
kafka-2-lb LoadBalancer 10.43.211.63 192.168.1.204 9092:30269/TCP 8h
kafka-bootstrap-lb LoadBalancer 10.43.75.152 192.168.1.202 9092:30735/TCP 3d5h

```
but i want assigment like this
kafka-bootstrap-lb 192.168.1.210
kafka-0-lb 192.168.1.200
kafka-1-lb 192.168.1.201
kafka-2-lb 192.168.1.202

Contributor guide

No contributing guide indexed for this repository

Research direction

Review the existing CFK loadBalancer examples and the supplied MetalLB IPAddressPool/L2Advertisement configuration first; no repository file is named in the issue. Done means an example documents how to request the stated fixed addresses for bootstrap and broker LoadBalancer services, with the resulting service assignments verifiable using kubectl.

Written by the indexing model from the issue text.

Assessment

Tech stack
kubernetes
Domain
documentation, infrastructure
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.