mirror of
https://github.com/rancher/rke.git
synced 2025-08-02 07:43:04 +00:00
Add kubelet fail-swap-on option
This commit is contained in:
parent
bdf0a9b413
commit
5f5b1a51a9
@ -3,6 +3,7 @@ package services
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"github.com/docker/docker/api/types/container"
|
||||
"github.com/rancher/rke/docker"
|
||||
@ -44,6 +45,7 @@ func buildKubeletConfig(host *hosts.Host, kubeletService v3.KubeletService) (*co
|
||||
"--cloud-provider=",
|
||||
"--kubeconfig=" + pki.GetConfigPath(pki.KubeNodeCertName),
|
||||
"--require-kubeconfig=True",
|
||||
"--fail-swap-on=" + strconv.FormatBool(kubeletService.FailSwapOn),
|
||||
},
|
||||
}
|
||||
hostCfg := &container.HostConfig{
|
||||
|
Loading…
Reference in New Issue
Block a user