diff --git a/internal/controllers/kubelb/loadbalancer_controller.go b/internal/controllers/kubelb/loadbalancer_controller.go index 00de9d8..7d7cbdb 100644 --- a/internal/controllers/kubelb/loadbalancer_controller.go +++ b/internal/controllers/kubelb/loadbalancer_controller.go @@ -284,6 +284,10 @@ func (r *LoadBalancerReconciler) reconcileService(ctx context.Context, loadBalan ports = append(ports, allocatedPort) } + if service.Annotations == nil { + service.Annotations = make(map[string]string) + } + for k, v := range kubelb.PropagateAnnotations(loadBalancer.Annotations, annotations) { service.Annotations[k] = v }