From d362ef9257c67bd5d692ee1fab1453025687a584 Mon Sep 17 00:00:00 2001 From: Evan Baker Date: Wed, 3 Aug 2022 21:57:45 +0000 Subject: [PATCH] add cni installer manifest Signed-off-by: Evan Baker --- hack/manifests/cni-installer.yaml | 89 +++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 hack/manifests/cni-installer.yaml diff --git a/hack/manifests/cni-installer.yaml b/hack/manifests/cni-installer.yaml new file mode 100644 index 0000000000..a6dc331354 --- /dev/null +++ b/hack/manifests/cni-installer.yaml @@ -0,0 +1,89 @@ +apiVersion: apps/v1 +kind: DaemonSet +metadata: + name: cni-installer + namespace: kube-system + labels: + app: cni-installer +spec: + selector: + matchLabels: + k8s-app: cni-installer + template: + metadata: + labels: + k8s-app: cni-installer + annotations: + cluster-autoscaler.kubernetes.io/daemonset-pod: "true" + spec: + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: kubernetes.azure.com/cluster + operator: Exists + - key: type + operator: NotIn + values: + - virtual-kubelet + - key: beta.kubernetes.io/os + operator: In + values: + - linux + priorityClassName: system-node-critical + tolerations: + - key: CriticalAddonsOnly + operator: Exists + - operator: "Exists" + effect: NoExecute + - operator: "Exists" + effect: NoSchedule + containers: + - name: cni-installer + image: acnpublic.azurecr.io/cni-dropgz:v1.4.28-41-g3ecb7fb1 + imagePullPolicy: Always + command: ["/dropgz"] + args: + - deploy + - azure-vnet + - -o + - /opt/cni/bin/azure-vnet + - azure-linux-swift.conflist + - -o + - /etc/cni/net.d/10-azure.conflist + volumeMounts: + - name: cni-bin + mountPath: /opt/cni/bin + - name: cni-conflist + mountPath: /etc/cni/net.d + hostNetwork: true + volumes: + - name: cni-conflist + hostPath: + path: /etc/cni/net.d + type: Directory + - name: log + hostPath: + path: /var/log + type: Directory + - name: cns-state + hostPath: + path: /var/lib/azure-network + type: DirectoryOrCreate + - name: cni-bin + hostPath: + path: /opt/cni/bin + type: Directory + - name: azure-vnet + hostPath: + path: /var/run/azure-vnet + type: DirectoryOrCreate + - name: legacy-cni-state + hostPath: + path: /var/run/azure-vnet.json + type: FileOrCreate + - name: cns-config + configMap: + name: cns-config + serviceAccountName: azure-cns