From 4409f6c9f051cde843e30df4bd5e29678d7ae9de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=A5=96=E5=BB=BA?= Date: Tue, 5 Jul 2022 10:34:50 +0800 Subject: [PATCH] fix ovs-ovn not running on newly added nodes (#1661) --- dist/images/install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dist/images/install.sh b/dist/images/install.sh index 8c00d737d18..a7534e8f88c 100755 --- a/dist/images/install.sh +++ b/dist/images/install.sh @@ -185,7 +185,9 @@ fi kubectl label no -lbeta.kubernetes.io/os=linux kubernetes.io/os=linux --overwrite kubectl label no -l$LABEL kube-ovn/role=master --overwrite -kubectl label no -lovn.kubernetes.io/ovs_dp_type!=userspace ovn.kubernetes.io/ovs_dp_type=kernel --overwrite +if [ "$DPDK" = "true" -o "$HYBRID_DPDK" = "true" ]; then + kubectl label no -lovn.kubernetes.io/ovs_dp_type!=userspace ovn.kubernetes.io/ovs_dp_type=kernel --overwrite +fi echo "-------------------------------" echo "" @@ -2291,7 +2293,6 @@ spec: memory: 1000Mi nodeSelector: kubernetes.io/os: "linux" - ovn.kubernetes.io/ovs_dp_type: kernel volumes: - name: host-modules hostPath: