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