mirror of https://github.com/kubernetes/kops.git
Pass --network-plugin-dir for kubenet
kubenet continues to look there rather than --cni-bin-dir
This commit is contained in:
parent
76e98087ac
commit
1909b88097
|
|
@ -140,6 +140,11 @@ func (b *KubeletBuilder) buildSystemdEnvironmentFile(kubeletConfig *kops.Kubelet
|
|||
flags += " --cni-conf-dir=" + b.CNIConfDir()
|
||||
}
|
||||
|
||||
if b.Cluster.Spec.Networking != nil && b.Cluster.Spec.Networking.Kubenet != nil {
|
||||
// Kubenet is neither CNI nor not-CNI, so we need to pass it `--network-plugin-dir` also
|
||||
flags += " --network-plugin-dir=" + b.CNIBinDir()
|
||||
}
|
||||
|
||||
sysconfig := "DAEMON_ARGS=\"" + flags + "\"\n"
|
||||
|
||||
t := &nodetasks.File{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
contents: |
|
||||
DAEMON_ARGS="--feature-gates=AllowExtTrafficLocalEndpoints=false,ExperimentalCriticalPodAnnotation=true --node-labels=kubernetes.io/role=node,node-role.kubernetes.io/node= --cni-bin-dir=/opt/cni/bin/ --cni-conf-dir=/etc/cni/net.d/"
|
||||
DAEMON_ARGS="--feature-gates=AllowExtTrafficLocalEndpoints=false,ExperimentalCriticalPodAnnotation=true --node-labels=kubernetes.io/role=node,node-role.kubernetes.io/node= --cni-bin-dir=/opt/cni/bin/ --cni-conf-dir=/etc/cni/net.d/ --network-plugin-dir=/opt/cni/bin/"
|
||||
path: /etc/sysconfig/kubelet
|
||||
type: file
|
||||
|
|
|
|||
Loading…
Reference in New Issue