Skip to content

operator/chart: Create services per per in kubernetes cluster mesh setup#1298

Open
RafalKorepta wants to merge 1 commit intomainfrom
rk/k8s-751/create-services-in-multicluster-setup
Open

operator/chart: Create services per per in kubernetes cluster mesh setup#1298
RafalKorepta wants to merge 1 commit intomainfrom
rk/k8s-751/create-services-in-multicluster-setup

Conversation

@RafalKorepta
Copy link
Contributor

@RafalKorepta RafalKorepta commented Mar 11, 2026

To create Raft group among operators running in multiple distinct Kubernetes clusters each operator need to have routable address. With this change when multicluster flag is enabled Kubernetes services are created per peer name. Addidional labels and selector overwrite is crucial to expose services in cluster mesh setup and point to correct operator Pod.

Example configuraiton:

multicluster:
  enabled: true
  name: first
  apiServerExternalAddress: "https://34.42.207.87"
  peers:
    - name: first
      address: first-redpanda-operator-nightly-raft-service
      additionalAnnotation:
        service.cilium.io/global: "true"
      selectorOverwrite:
        app.kubernetes.io/instance: first
    - name: second
      address: second-redpanda-operator-nightly-raft-service
      additionalAnnotation:
        service.cilium.io/global: "true"
      selectorOverwrite:
        app.kubernetes.io/instance: second
    - name: third
      address: third-redpanda-operator-nightly-raft-service
      additionalAnnotation:
        service.cilium.io/global: "true"
      selectorOverwrite:
        app.kubernetes.io/instance: third

Closes K8S-792

@RafalKorepta RafalKorepta requested a review from hidalgopl March 11, 2026 11:51
@RafalKorepta RafalKorepta force-pushed the rk/k8s-751/create-services-in-multicluster-setup branch from 084e8b4 to ded56ba Compare March 11, 2026 18:08
@RafalKorepta RafalKorepta force-pushed the rk/k8s-751/create-services-in-multicluster-setup branch 2 times, most recently from 626ecdd to 5c324ef Compare March 17, 2026 11:49
To create Raft group among operators running in multiple distinct Kubernetes
clusters each operator need to have routable address. With this change when
multicluster flag is enabled Kubernetes services are created per peer name.
Addidional labels and selector overwrite is crucial to expose services in
cluster mesh setup and point to correct operator Pod.

Example configuraiton:
```yaml
multicluster:
  enabled: true
  name: first
  apiServerExternalAddress: "https://34.42.207.87"
  peers:
    - name: first
      address: first-redpanda-operator-nightly-raft-service
      additionalAnnotation:
        service.cilium.io/global: "true"
      selectorOverwrite:
        app.kubernetes.io/instance: first
    - name: second
      address: second-redpanda-operator-nightly-raft-service
      additionalAnnotation:
        service.cilium.io/global: "true"
      selectorOverwrite:
        app.kubernetes.io/instance: second
    - name: third
      address: third-redpanda-operator-nightly-raft-service
      additionalAnnotation:
        service.cilium.io/global: "true"
      selectorOverwrite:
        app.kubernetes.io/instance: third
```
@RafalKorepta RafalKorepta force-pushed the rk/k8s-751/create-services-in-multicluster-setup branch from 5c324ef to 9f21c1c Compare March 17, 2026 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants