Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
6fd685b5
Commit
6fd685b5
authored
Jul 22, 2016
by
k8s-merge-robot
Committed by
GitHub
Jul 22, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #29207 from fgrzadkowski/ha_master_leader_elect
Automatic merge from submit-queue Add default leader election for scheduler and controller manager. #21124
parents
60e59c94
69e97863
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
options.go
cmd/kube-controller-manager/app/options/options.go
+1
-0
options.go
plugin/cmd/kube-scheduler/app/options/options.go
+1
-0
No files found.
cmd/kube-controller-manager/app/options/options.go
View file @
6fd685b5
...
...
@@ -97,6 +97,7 @@ func NewCMServer() *CMServer {
ClusterSigningKeyFile
:
"/etc/kubernetes/ca/ca.key"
,
},
}
s
.
LeaderElection
.
LeaderElect
=
true
return
&
s
}
...
...
plugin/cmd/kube-scheduler/app/options/options.go
View file @
6fd685b5
...
...
@@ -42,6 +42,7 @@ type SchedulerServer struct {
func
NewSchedulerServer
()
*
SchedulerServer
{
config
:=
componentconfig
.
KubeSchedulerConfiguration
{}
api
.
Scheme
.
Convert
(
&
v1alpha1
.
KubeSchedulerConfiguration
{},
&
config
)
config
.
LeaderElection
.
LeaderElect
=
true
s
:=
SchedulerServer
{
KubeSchedulerConfiguration
:
config
,
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment