1
0
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:
galal-hussein 2018-02-03 04:33:18 +02:00
parent bdf0a9b413
commit 5f5b1a51a9

View File

@ -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{