If i use the ListenerClass external-stable on IONOS k8s the LoadBalancer svc is not reachable. I did find out it's because we set externalTrafficPolicy: Local on the svc here.
This PR simply allows users to configure that field, which is than passed to the created Service. We leave the default as-is at Local, so we don't have any breaking change.
This change is needed for external-stable to work on IONOS!
---
apiVersion: listeners.stackable.tech/v1alpha1
kind: ListenerClass
metadata:
name: public
spec:
serviceType: LoadBalancer
# NEW:
serviceExternalTrafficPolicy: Local # or Cluster, defaults to Local
# Tasks
- [ ] operator-rs change
- [ ] Read and use new field in listener-op
Definition of Done Checklist
Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant
Please make sure all these things are done and tick the boxes
Description
Replaces https://github.com/stackabletech/operator-rs/pull/562 Needed by https://github.com/stackabletech/listener-operator/pull/57 First raised a year ago here
If i use the ListenerClass
external-stable
on IONOS k8s theLoadBalancer
svc is not reachable. I did find out it's because we setexternalTrafficPolicy: Local
on the svc here. This PR simply allows users to configure that field, which is than passed to the created Service. We leave the default as-is atLocal
, so we don't have any breaking change.This change is needed for external-stable to work on IONOS!
Some background info on that feature
CRD change
Definition of Done Checklist