cmd/k8s-operator: set PreferDualStack on ProxyGroup egress services (#19194)

On dual-stack clusters defaulting to IPv6, the ProxyGroup egress
service only got an IPv6 address, which causes request failures.
Individual egress proxies already set PreferDualStack correctly.

Fixes: #18768

Signed-off-by: Fernando Serboncini <[email protected]>
This commit is contained in:
Fernando Serboncini authored and GitHub committed 2026-04-09 13:33:39 -04:00
1 parent 27e6fed0c1
commit 6b7caaf7ee
2 files changed
+5 -3

No files matched your search

+2 -1
View File
@@ -457,7 +457,8 @@ func (esr *egressSvcsReconciler) clusterIPSvcForEgress(crl map[string]string) *c
Labels: crl,
},
Spec: corev1.ServiceSpec{
Type: corev1.ServiceTypeClusterIP,
Type: corev1.ServiceTypeClusterIP,
IPFamilyPolicy: new(corev1.IPFamilyPolicyPreferDualStack),
},
}
}
+3 -2
View File
@@ -203,8 +203,9 @@ func clusterIPSvc(name string, extNSvc *corev1.Service) *corev1.Service {
Labels: labels,
},
Spec: corev1.ServiceSpec{
Type: corev1.ServiceTypeClusterIP,
Ports: ports,
Type: corev1.ServiceTypeClusterIP,
IPFamilyPolicy: new(corev1.IPFamilyPolicyPreferDualStack),
Ports: ports,
},
}
}