Skip to content

Commit 2e3d65a

Browse files
committed
Mount nft binary from host
1 parent 2bc967b commit 2e3d65a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nodeup/pkg/model/kube_proxy.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,11 @@ func (b *KubeProxyBuilder) buildPod() (*v1.Pod, error) {
229229
vol.HostPath.Type = &hostPathType
230230
}
231231

232+
// Mount host nft binary for kube-proxy nftables mode
233+
if c.ProxyMode == "nftables" {
234+
kubemanifest.AddHostPathMapping(pod, container, "usrsbin", "/usr/sbin", kubemanifest.WithMountPath("/usr/sbin"))
235+
}
236+
232237
pod.Spec.Containers = append(pod.Spec.Containers, *container)
233238

234239
// This annotation ensures that kube-proxy does not get evicted if the node

0 commit comments

Comments
 (0)