From d79f9ea55c44328165fb98f38395a598a97ca35e Mon Sep 17 00:00:00 2001 From: Andrea Panattoni Date: Tue, 19 Nov 2024 17:29:21 +0100 Subject: [PATCH] Deployment file With this configuration, `bond` CNI plugin can be deployed via: ``` kubectl apply -f https://raw.githubusercontent.com/k8snetworkplumbingwg/bond-cni/master/manifests/bond.yml ``` Signed-off-by: Andrea Panattoni --- manifests/bond-cni.yaml | 42 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 manifests/bond-cni.yaml diff --git a/manifests/bond-cni.yaml b/manifests/bond-cni.yaml new file mode 100644 index 0000000..8da9f56 --- /dev/null +++ b/manifests/bond-cni.yaml @@ -0,0 +1,42 @@ +apiVersion: apps/v1 +kind: DaemonSet +metadata: + name: bond-cni + labels: + tier: node + app: bond-cni +spec: + selector: + matchLabels: + app: bond-cni + updateStrategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 10% + template: + metadata: + labels: + tier: node + app: bond-cni + spec: + nodeSelector: + kubernetes.io/arch: amd64 + kubernetes.io/os: linux + tolerations: + - key: node-role.kubernetes.io/master + operator: Exists + effect: NoSchedule + containers: + - name: bond-cni-plugin + image: ghcr.io/k8snetworkplumbingwg/bond-cni:latest + resources: + requests: + cpu: "10m" + memory: "15Mi" + volumeMounts: + - name: cnibin + mountPath: /host/opt/cni/bin/ + volumes: + - name: cnibin + hostPath: + path: /opt/cni/bin/