Skip to content

Commit 8039cf9

Browse files
committed
Graduating EndpointSliceProxying to beta for Linux
1 parent 5577214 commit 8039cf9

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

cmd/kube-proxy/app/server_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func newProxyServer(config *proxyconfigapi.KubeProxyConfiguration, cleanupAndExi
174174
OOMScoreAdj: config.OOMScoreAdj,
175175
ConfigSyncPeriod: config.ConfigSyncPeriod.Duration,
176176
HealthzServer: healthzServer,
177-
UseEndpointSlices: utilfeature.DefaultFeatureGate.Enabled(features.EndpointSliceProxying),
177+
UseEndpointSlices: utilfeature.DefaultFeatureGate.Enabled(features.WindowsEndpointSliceProxying),
178178
}, nil
179179
}
180180

pkg/features/kube_features.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,10 +515,17 @@ const (
515515

516516
// owner: @robscott @freehan
517517
// alpha: v1.18
518+
// beta: v1.19
518519
//
519520
// Enable Endpoint Slice consumption by kube-proxy for improved scalability.
520521
EndpointSliceProxying featuregate.Feature = "EndpointSliceProxying"
521522

523+
// owner: @robscott @kumarvin123
524+
// alpha: v1.19
525+
//
526+
// Enable Endpoint Slice consumption by kube-proxy in Windows for improved scalability.
527+
WindowsEndpointSliceProxying featuregate.Feature = "WindowsEndpointSliceProxying"
528+
522529
// owner: @Huang-Wei
523530
// alpha: v1.16
524531
// beta: v1.18
@@ -680,7 +687,8 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
680687
PodOverhead: {Default: true, PreRelease: featuregate.Beta},
681688
IPv6DualStack: {Default: false, PreRelease: featuregate.Alpha},
682689
EndpointSlice: {Default: true, PreRelease: featuregate.Beta},
683-
EndpointSliceProxying: {Default: false, PreRelease: featuregate.Alpha},
690+
EndpointSliceProxying: {Default: true, PreRelease: featuregate.Beta},
691+
WindowsEndpointSliceProxying: {Default: false, PreRelease: featuregate.Alpha},
684692
EvenPodsSpread: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.21
685693
StartupProbe: {Default: true, PreRelease: featuregate.Beta},
686694
AllowInsecureBackendProxy: {Default: true, PreRelease: featuregate.Beta},

pkg/proxy/winkernel/proxier.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ func NewProxier(
579579
}
580580

581581
isIPv6 := utilnet.IsIPv6(nodeIP)
582-
endpointSlicesEnabled := utilfeature.DefaultFeatureGate.Enabled(features.EndpointSliceProxying)
582+
endpointSlicesEnabled := utilfeature.DefaultFeatureGate.Enabled(features.WindowsEndpointSliceProxying)
583583
proxier := &Proxier{
584584
endPointsRefCount: make(endPointsReferenceCountMap),
585585
portsMap: make(map[utilproxy.LocalPort]utilproxy.Closeable),
@@ -779,7 +779,7 @@ func (proxier *Proxier) OnServiceDelete(service *v1.Service) {
779779
func (proxier *Proxier) OnServiceSynced() {
780780
proxier.mu.Lock()
781781
proxier.servicesSynced = true
782-
if utilfeature.DefaultFeatureGate.Enabled(features.EndpointSliceProxying) {
782+
if utilfeature.DefaultFeatureGate.Enabled(features.WindowsEndpointSliceProxying) {
783783
proxier.setInitialized(proxier.endpointSlicesSynced)
784784
} else {
785785
proxier.setInitialized(proxier.endpointsSynced)

0 commit comments

Comments
 (0)