Skip to content

Commit

Permalink
Make "openshift start node --write-config" tolerate swap on
Browse files Browse the repository at this point in the history
  • Loading branch information
liggitt committed Nov 21, 2017
1 parent 5bb0613 commit 2b69c32
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/cmd/server/admin/create_nodeconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ type CreateNodeConfigOptions struct {
DNSRecursiveResolvConf string
ListenAddr flagtypes.Addr

KubeletArguments map[string][]string

ClientCertFile string
ClientKeyFile string
ServerCertFile string
Expand Down Expand Up @@ -420,6 +422,8 @@ func (o CreateNodeConfigOptions) MakeNodeConfig(serverCertFile, serverKeyFile, n
NetworkPluginName: o.NetworkPluginName,
},

KubeletArguments: o.KubeletArguments,

EnableUnidling: true,
}

Expand Down
4 changes: 4 additions & 0 deletions pkg/cmd/server/start/start_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,10 @@ func (o NodeOptions) createNodeConfig() (string, error) {
APIServerURL: masterAddr.String(),
APIServerCAFiles: []string{admin.DefaultCABundleFile(o.NodeArgs.MasterCertDir)},

KubeletArguments: map[string][]string{
"fail-swap-on": {"false"},
},

NodeClientCAFile: getSignerOptions.CertFile,
ExpireDays: o.ExpireDays,
Output: cmdutil.NewGLogWriterV(3),
Expand Down

0 comments on commit 2b69c32

Please sign in to comment.