Skip to content

Commit bd1da08

Browse files
committed
interesting: restore ability to start with swap on by default
1 parent 424fa05 commit bd1da08

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/cmd/server/kubernetes/node/options/options.go

+4
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ func Build(options configapi.NodeConfig) (*kubeletoptions.KubeletServer, error)
8282
server.RemoteImageEndpoint = options.DockerConfig.DockerShimSocket
8383
server.DockershimRootDirectory = options.DockerConfig.DockershimRootDirectory
8484

85+
// TODO: check/warn/fail in setup instead?
86+
// allows kubelet to continue to start in swap environments
87+
server.FailSwapOn = false
88+
8589
// prevents kube from generating certs
8690
server.TLSCertFile = options.ServingInfo.ServerCert.CertFile
8791
server.TLSPrivateKeyFile = options.ServingInfo.ServerCert.KeyFile

0 commit comments

Comments
 (0)