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