From 3056aac9ac5862adcf55314bcd07324381e341ea Mon Sep 17 00:00:00 2001 From: Ivan Kolodiazhnyi Date: Tue, 28 Mar 2023 15:09:01 +0300 Subject: [PATCH] Put sriov-network-config-daemon contianer on the first place Make sriov-network-config-daemon container as a default to access logs easier without specifing container name. It's more often use-case rather then checking CNIs logs. --- bindata/manifests/daemon/daemonset.yaml | 48 ++++++++++++------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/bindata/manifests/daemon/daemonset.yaml b/bindata/manifests/daemon/daemonset.yaml index ac9cda2c6..2a5d5bdaf 100644 --- a/bindata/manifests/daemon/daemonset.yaml +++ b/bindata/manifests/daemon/daemonset.yaml @@ -38,28 +38,6 @@ spec: {{- end }} {{- end }} containers: - - name: sriov-cni - image: {{.SRIOVCNIImage}} - securityContext: - privileged: true - resources: - requests: - cpu: 10m - memory: 10Mi - volumeMounts: - - name: cnibin - mountPath: /host/opt/cni/bin - - name: sriov-infiniband-cni - image: {{.SRIOVInfiniBandCNIImage}} - securityContext: - privileged: true - resources: - requests: - cpu: 10m - memory: 10Mi - volumeMounts: - - name: cnibin - mountPath: /host/opt/cni/bin - name: sriov-network-config-daemon image: {{.Image}} command: @@ -87,12 +65,34 @@ spec: cpu: 100m memory: 100Mi volumeMounts: - - name: host - mountPath: /host + - name: host + mountPath: /host lifecycle: preStop: exec: command: ["/bindata/scripts/clean-k8s-services.sh"] + - name: sriov-cni + image: {{.SRIOVCNIImage}} + securityContext: + privileged: true + resources: + requests: + cpu: 10m + memory: 10Mi + volumeMounts: + - name: cnibin + mountPath: /host/opt/cni/bin + - name: sriov-infiniband-cni + image: {{.SRIOVInfiniBandCNIImage}} + securityContext: + privileged: true + resources: + requests: + cpu: 10m + memory: 10Mi + volumeMounts: + - name: cnibin + mountPath: /host/opt/cni/bin volumes: - name: host hostPath: