From c941697570975a0192f52cc192185250a0a6d73d Mon Sep 17 00:00:00 2001 From: shodan Date: Tue, 7 Apr 2026 14:02:32 +0000 Subject: [PATCH] , --- multus/install-net-components-ds.yaml | 46 +++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 multus/install-net-components-ds.yaml diff --git a/multus/install-net-components-ds.yaml b/multus/install-net-components-ds.yaml new file mode 100644 index 0000000..ebd2319 --- /dev/null +++ b/multus/install-net-components-ds.yaml @@ -0,0 +1,46 @@ +apiVersion: apps/v1 +kind: DaemonSet +metadata: + name: install-cni-plugins + namespace: kube-system +spec: + selector: + matchLabels: + app: install-cni-plugins + template: + metadata: + labels: + app: install-cni-plugins + spec: + hostNetwork: true + hostPID: true + tolerations: + - operator: Exists + containers: + - name: installer + image: alpine:3.20 + securityContext: + privileged: true + command: + - /bin/sh + - -ec + - | + apk add --no-cache curl tar + ARCH=amd64 + VER=v1.6.0 + mkdir -p /host/opt/cni/bin + cd /tmp + curl -L -o cni-plugins.tgz \ + https://github.com/containernetworking/plugins/releases/download/${VER}/cni-plugins-linux-${ARCH}-${VER}.tgz + tar -xzf cni-plugins.tgz -C /host/opt/cni/bin + chmod 755 /host/opt/cni/bin/* + ls -l /host/opt/cni/bin + sleep infinity + volumeMounts: + - name: host-opt-cni-bin + mountPath: /host/opt/cni/bin + volumes: + - name: host-opt-cni-bin + hostPath: + path: /opt/cni/bin + type: DirectoryOrCreate \ No newline at end of file