mirror of https://github.com/kubernetes/kops.git
Use /opt/cni/bin on all distros
We used to remap the cni-bin to /home/kubernetes/bin on COS, but that then requires us to change the CNI manifests also to write to the new location. Instead we can use /opt/cni/bin on all distros, now that we are making it writeable everywhere with a bind mount.
This commit is contained in:
parent
2711ed3f11
commit
a0c16c9abe
|
|
@ -173,12 +173,8 @@ func (c *NodeupModelContext) PathSrvSshproxy() string {
|
|||
|
||||
// CNIBinDir returns the path for the CNI binaries
|
||||
func (c *NodeupModelContext) CNIBinDir() string {
|
||||
switch c.Distribution {
|
||||
case distros.DistributionContainerOS:
|
||||
return "/home/kubernetes/bin/"
|
||||
default:
|
||||
return "/opt/cni/bin/"
|
||||
}
|
||||
// We used to map this on a per-distro basis, but this can require CNI manifests to be distro aware
|
||||
return "/opt/cni/bin/"
|
||||
}
|
||||
|
||||
// KubeletBootstrapKubeconfig is the path the bootstrap config file
|
||||
|
|
|
|||
Loading…
Reference in New Issue