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
aab7045b
Unverified
Commit
aab7045b
authored
Jul 12, 2019
by
Erik Wilson
Committed by
GitHub
Jul 12, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #632 from ibuildthecloud/k3v
Add option to disable scheduler
parents
ba4d920f
dbb7b04c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
server.go
pkg/cli/cmds/server.go
+6
-0
server.go
pkg/cli/server/server.go
+1
-0
No files found.
pkg/cli/cmds/server.go
View file @
aab7045b
...
@@ -31,6 +31,7 @@ type Server struct {
...
@@ -31,6 +31,7 @@ type Server struct {
StorageKeyFile
string
StorageKeyFile
string
AdvertiseIP
string
AdvertiseIP
string
AdvertisePort
int
AdvertisePort
int
DisableScheduler
bool
}
}
var
ServerConfig
Server
var
ServerConfig
Server
...
@@ -191,6 +192,11 @@ func NewServerCommand(action func(*cli.Context) error) cli.Command {
...
@@ -191,6 +192,11 @@ func NewServerCommand(action func(*cli.Context) error) cli.Command {
Value
:
0
,
Value
:
0
,
Destination
:
&
ServerConfig
.
AdvertisePort
,
Destination
:
&
ServerConfig
.
AdvertisePort
,
},
},
cli
.
BoolFlag
{
Name
:
"disable-scheduler"
,
Usage
:
"Disable Kubernetes default scheduler"
,
Destination
:
&
ServerConfig
.
DisableScheduler
,
},
NodeIPFlag
,
NodeIPFlag
,
NodeNameFlag
,
NodeNameFlag
,
DockerFlag
,
DockerFlag
,
...
...
pkg/cli/server/server.go
View file @
aab7045b
...
@@ -100,6 +100,7 @@ func run(app *cli.Context, cfg *cmds.Server) error {
...
@@ -100,6 +100,7 @@ func run(app *cli.Context, cfg *cmds.Server) error {
serverConfig
.
ControlConfig
.
DataDir
=
cfg
.
DataDir
serverConfig
.
ControlConfig
.
DataDir
=
cfg
.
DataDir
serverConfig
.
ControlConfig
.
KubeConfigOutput
=
cfg
.
KubeConfigOutput
serverConfig
.
ControlConfig
.
KubeConfigOutput
=
cfg
.
KubeConfigOutput
serverConfig
.
ControlConfig
.
KubeConfigMode
=
cfg
.
KubeConfigMode
serverConfig
.
ControlConfig
.
KubeConfigMode
=
cfg
.
KubeConfigMode
serverConfig
.
ControlConfig
.
NoScheduler
=
cfg
.
DisableScheduler
serverConfig
.
Rootless
=
cfg
.
Rootless
serverConfig
.
Rootless
=
cfg
.
Rootless
serverConfig
.
TLSConfig
.
HTTPSPort
=
cfg
.
HTTPSPort
serverConfig
.
TLSConfig
.
HTTPSPort
=
cfg
.
HTTPSPort
serverConfig
.
TLSConfig
.
HTTPPort
=
cfg
.
HTTPPort
serverConfig
.
TLSConfig
.
HTTPPort
=
cfg
.
HTTPPort
...
...
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