mirror of
https://github.com/rancher/rke.git
synced 2025-07-22 02:51:54 +00:00
fix kubelet and kubeapi params
This commit is contained in:
parent
192182c5d6
commit
fdbb4bb03b
@ -92,7 +92,7 @@ func (c *Cluster) BuildKubeAPIProcess() v3.Process {
|
|||||||
"insecure-port": "0",
|
"insecure-port": "0",
|
||||||
"secure-port": "6443",
|
"secure-port": "6443",
|
||||||
"cloud-provider": c.CloudProvider.Name,
|
"cloud-provider": c.CloudProvider.Name,
|
||||||
"allow_privileged": "true",
|
"allow-privileged": "true",
|
||||||
"kubelet-preferred-address-types": "InternalIP,ExternalIP,Hostname",
|
"kubelet-preferred-address-types": "InternalIP,ExternalIP,Hostname",
|
||||||
"service-cluster-ip-range": c.Services.KubeAPI.ServiceClusterIPRange,
|
"service-cluster-ip-range": c.Services.KubeAPI.ServiceClusterIPRange,
|
||||||
"admission-control": "ServiceAccount,NamespaceLifecycle,LimitRanger,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota,DefaultTolerationSeconds",
|
"admission-control": "ServiceAccount,NamespaceLifecycle,LimitRanger,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota,DefaultTolerationSeconds",
|
||||||
@ -254,7 +254,6 @@ func (c *Cluster) BuildKubeletProcess(host *hosts.Host) v3.Process {
|
|||||||
"client-ca-file": pki.GetCertPath(pki.CACertName),
|
"client-ca-file": pki.GetCertPath(pki.CACertName),
|
||||||
"anonymous-auth": "false",
|
"anonymous-auth": "false",
|
||||||
"volume-plugin-dir": "/var/lib/kubelet/volumeplugins",
|
"volume-plugin-dir": "/var/lib/kubelet/volumeplugins",
|
||||||
"require-kubeconfig": "True",
|
|
||||||
"fail-swap-on": strconv.FormatBool(c.Services.Kubelet.FailSwapOn),
|
"fail-swap-on": strconv.FormatBool(c.Services.Kubelet.FailSwapOn),
|
||||||
}
|
}
|
||||||
if host.Address != host.InternalAddress {
|
if host.Address != host.InternalAddress {
|
||||||
|
Loading…
Reference in New Issue
Block a user