mirror of
https://github.com/rancher/rke.git
synced 2025-05-09 16:56:57 +00:00
add /var/lib/cni to kubelet mounts
This commit is contained in:
parent
9585ec5780
commit
289c3d5d20
@ -193,6 +193,7 @@ func (c *Cluster) BuildKubeletProcess(host *hosts.Host) v3.Process {
|
||||
"/etc/kubernetes:/etc/kubernetes:z",
|
||||
"/etc/cni:/etc/cni:ro,z",
|
||||
"/opt/cni:/opt/cni:ro,z",
|
||||
"/var/lib/cni:/var/lib/cni:z",
|
||||
"/etc/resolv.conf:/etc/resolv.conf",
|
||||
"/sys:/sys",
|
||||
"/var/lib/docker:/var/lib/docker:rw,z",
|
||||
|
@ -36,6 +36,7 @@ const (
|
||||
ToCleanSSLDir = "/etc/kubernetes/ssl"
|
||||
ToCleanCNIConf = "/etc/cni"
|
||||
ToCleanCNIBin = "/opt/cni"
|
||||
ToCleanCNILib = "/var/lib/cni"
|
||||
ToCleanCalicoRun = "/var/run/calico"
|
||||
ToCleanTempCertPath = "/etc/kubernetes/.tmp/"
|
||||
CleanerContainerName = "kube-cleaner"
|
||||
@ -50,6 +51,7 @@ func (h *Host) CleanUpAll(ctx context.Context, cleanerImage string, prsMap map[s
|
||||
ToCleanCNIBin,
|
||||
ToCleanCalicoRun,
|
||||
ToCleanTempCertPath,
|
||||
ToCleanCNILib,
|
||||
}
|
||||
return h.CleanUp(ctx, toCleanPaths, cleanerImage, prsMap)
|
||||
}
|
||||
@ -64,6 +66,7 @@ func (h *Host) CleanUpWorkerHost(ctx context.Context, cleanerImage string, prsMa
|
||||
ToCleanCNIConf,
|
||||
ToCleanCNIBin,
|
||||
ToCleanCalicoRun,
|
||||
ToCleanCNILib,
|
||||
}
|
||||
return h.CleanUp(ctx, toCleanPaths, cleanerImage, prsMap)
|
||||
}
|
||||
@ -78,6 +81,7 @@ func (h *Host) CleanUpControlHost(ctx context.Context, cleanerImage string, prsM
|
||||
ToCleanCNIConf,
|
||||
ToCleanCNIBin,
|
||||
ToCleanCalicoRun,
|
||||
ToCleanCNILib,
|
||||
}
|
||||
return h.CleanUp(ctx, toCleanPaths, cleanerImage, prsMap)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user