Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Hepto
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ACIDES
Hepto
Commits
9e4e302f
Commit
9e4e302f
authored
1 year ago
by
kaiyou
Browse files
Options
Downloads
Patches
Plain Diff
Enable the endpointslice controller to fix kube-proxy
parent
e8aafae2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#28934
passed
1 year ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
services/cm.go
+14
-0
14 additions, 0 deletions
services/cm.go
with
14 additions
and
0 deletions
services/cm.go
+
14
−
0
View file @
9e4e302f
...
@@ -18,6 +18,7 @@ import (
...
@@ -18,6 +18,7 @@ import (
"k8s.io/kubernetes/pkg/controller/daemon"
"k8s.io/kubernetes/pkg/controller/daemon"
"k8s.io/kubernetes/pkg/controller/deployment"
"k8s.io/kubernetes/pkg/controller/deployment"
"k8s.io/kubernetes/pkg/controller/endpoint"
"k8s.io/kubernetes/pkg/controller/endpoint"
"k8s.io/kubernetes/pkg/controller/endpointslice"
"k8s.io/kubernetes/pkg/controller/garbagecollector"
"k8s.io/kubernetes/pkg/controller/garbagecollector"
"k8s.io/kubernetes/pkg/controller/namespace"
"k8s.io/kubernetes/pkg/controller/namespace"
"k8s.io/kubernetes/pkg/controller/nodelifecycle"
"k8s.io/kubernetes/pkg/controller/nodelifecycle"
...
@@ -231,6 +232,19 @@ var kubeControllerManager = &Unit{
...
@@ -231,6 +232,19 @@ var kubeControllerManager = &Unit{
0
,
// batch duration
0
,
// batch duration
)
.
Run
(
ctx
,
1
)
)
.
Run
(
ctx
,
1
)
go
endpointslice
.
NewController
(
clients
.
Informer
.
Core
()
.
V1
()
.
Pods
(),
clients
.
Informer
.
Core
()
.
V1
()
.
Services
(),
clients
.
Informer
.
Core
()
.
V1
()
.
Nodes
(),
clients
.
Informer
.
Discovery
()
.
V1
()
.
EndpointSlices
(),
100
,
// default
clients
.
Client
,
0
,
// batch duration
)
.
Run
(
1
,
ctx
.
Done
())
// TODO maybe run the endpointslice mirroring controller if we ever create endpoints
// manually
//////////////////
//////////////////
/// Storage
/// Storage
//////////////////
//////////////////
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment