mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Graduating EndpointSliceProxying to beta for Linux
This commit is contained in:
		@@ -174,7 +174,7 @@ func newProxyServer(config *proxyconfigapi.KubeProxyConfiguration, cleanupAndExi
 | 
			
		||||
		OOMScoreAdj:         config.OOMScoreAdj,
 | 
			
		||||
		ConfigSyncPeriod:    config.ConfigSyncPeriod.Duration,
 | 
			
		||||
		HealthzServer:       healthzServer,
 | 
			
		||||
		UseEndpointSlices:   utilfeature.DefaultFeatureGate.Enabled(features.EndpointSliceProxying),
 | 
			
		||||
		UseEndpointSlices:   utilfeature.DefaultFeatureGate.Enabled(features.WindowsEndpointSliceProxying),
 | 
			
		||||
	}, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -515,10 +515,17 @@ const (
 | 
			
		||||
 | 
			
		||||
	// owner: @robscott @freehan
 | 
			
		||||
	// alpha: v1.18
 | 
			
		||||
	// beta: v1.19
 | 
			
		||||
	//
 | 
			
		||||
	// Enable Endpoint Slice consumption by kube-proxy for improved scalability.
 | 
			
		||||
	EndpointSliceProxying featuregate.Feature = "EndpointSliceProxying"
 | 
			
		||||
 | 
			
		||||
	// owner: @robscott @kumarvin123
 | 
			
		||||
	// alpha: v1.19
 | 
			
		||||
	//
 | 
			
		||||
	// Enable Endpoint Slice consumption by kube-proxy in Windows for improved scalability.
 | 
			
		||||
	WindowsEndpointSliceProxying featuregate.Feature = "WindowsEndpointSliceProxying"
 | 
			
		||||
 | 
			
		||||
	// owner: @Huang-Wei
 | 
			
		||||
	// alpha: v1.16
 | 
			
		||||
	// beta: v1.18
 | 
			
		||||
@@ -680,7 +687,8 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
 | 
			
		||||
	PodOverhead:                                    {Default: true, PreRelease: featuregate.Beta},
 | 
			
		||||
	IPv6DualStack:                                  {Default: false, PreRelease: featuregate.Alpha},
 | 
			
		||||
	EndpointSlice:                                  {Default: true, PreRelease: featuregate.Beta},
 | 
			
		||||
	EndpointSliceProxying:                          {Default: false, PreRelease: featuregate.Alpha},
 | 
			
		||||
	EndpointSliceProxying:                          {Default: true, PreRelease: featuregate.Beta},
 | 
			
		||||
	WindowsEndpointSliceProxying:                   {Default: false, PreRelease: featuregate.Alpha},
 | 
			
		||||
	EvenPodsSpread:                                 {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.21
 | 
			
		||||
	StartupProbe:                                   {Default: true, PreRelease: featuregate.Beta},
 | 
			
		||||
	AllowInsecureBackendProxy:                      {Default: true, PreRelease: featuregate.Beta},
 | 
			
		||||
 
 | 
			
		||||
@@ -579,7 +579,7 @@ func NewProxier(
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	isIPv6 := utilnet.IsIPv6(nodeIP)
 | 
			
		||||
	endpointSlicesEnabled := utilfeature.DefaultFeatureGate.Enabled(features.EndpointSliceProxying)
 | 
			
		||||
	endpointSlicesEnabled := utilfeature.DefaultFeatureGate.Enabled(features.WindowsEndpointSliceProxying)
 | 
			
		||||
	proxier := &Proxier{
 | 
			
		||||
		endPointsRefCount:   make(endPointsReferenceCountMap),
 | 
			
		||||
		portsMap:            make(map[utilproxy.LocalPort]utilproxy.Closeable),
 | 
			
		||||
@@ -779,7 +779,7 @@ func (proxier *Proxier) OnServiceDelete(service *v1.Service) {
 | 
			
		||||
func (proxier *Proxier) OnServiceSynced() {
 | 
			
		||||
	proxier.mu.Lock()
 | 
			
		||||
	proxier.servicesSynced = true
 | 
			
		||||
	if utilfeature.DefaultFeatureGate.Enabled(features.EndpointSliceProxying) {
 | 
			
		||||
	if utilfeature.DefaultFeatureGate.Enabled(features.WindowsEndpointSliceProxying) {
 | 
			
		||||
		proxier.setInitialized(proxier.endpointSlicesSynced)
 | 
			
		||||
	} else {
 | 
			
		||||
		proxier.setInitialized(proxier.endpointsSynced)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user