From c01823f8a6dcfabe1643b40a378b8f556a7a27ae Mon Sep 17 00:00:00 2001 From: Tamilmani Manoharan Date: Fri, 19 Feb 2021 17:52:41 -0800 Subject: [PATCH] updated cns version and created cni installer for swift --- cns/azure-cns.yaml | 2 +- tools/acncli/deployment/manager_swift.yaml | 55 ++++++++++++++++++++++ 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 tools/acncli/deployment/manager_swift.yaml diff --git a/cns/azure-cns.yaml b/cns/azure-cns.yaml index 39877bc9b8..a009556480 100644 --- a/cns/azure-cns.yaml +++ b/cns/azure-cns.yaml @@ -93,7 +93,7 @@ spec: effect: NoSchedule containers: - name: cns-container - image: mcr.microsoft.com/containernetworking/azure-cns:v1.2.3 + image: mcr.microsoft.com/containernetworking/azure-cns:v1.2.4 imagePullPolicy: IfNotPresent args: [ "-c", "tcp://$(CNSIpAddress):$(CNSPort)", "-t", "$(CNSLogTarget)"] volumeMounts: diff --git a/tools/acncli/deployment/manager_swift.yaml b/tools/acncli/deployment/manager_swift.yaml new file mode 100644 index 0000000000..105ddb1982 --- /dev/null +++ b/tools/acncli/deployment/manager_swift.yaml @@ -0,0 +1,55 @@ +apiVersion: apps/v1 +kind: DaemonSet +metadata: + name: azure-cni-manager + namespace: kube-system +spec: + selector: + matchLabels: + acn: azure-cni-manager + template: + metadata: + labels: + acn: azure-cni-manager + spec: + tolerations: + - effect: NoSchedule + key: node-role.kubernetes.io/master + operator: Exists + hostNetwork: true + containers: + - name: azure-cni-installer + image: mcr.microsoft.com/containernetworking/azure-cni-manager:v1.2.3 + imagePullPolicy: Always + env: + - name: AZURE_CNI_OS + value: linux + - name: AZURE_CNI_TENANCY + value: singletenancy + - name: AZURE_CNI_MODE + value: transparent + - name: AZURE_CNI_IPAM + value: azure-cns + - name: AZURE_CNI_EXEMPT + value: azure-vnet-telemetry,azure-vnet-telemetry.config + volumeMounts: + - name: cni-bin + mountPath: /opt/cni/bin + - name: cni-conflist + mountPath: /etc/cni/net.d + - name: cni-datapath-log + mountPath: /var/log/azure-vnet.log + restartPolicy: Always + volumes: + - name: cni-bin + hostPath: + path: /opt/cni/bin + type: Directory + - name: cni-datapath-log + hostPath: + path: /var/log/azure-vnet.log + type: File + - name: cni-conflist + hostPath: + path: /etc/cni/net.d + type: Directory