summaryrefslogtreecommitdiff
path: root/hack/local-up-kubeedge.sh
diff options
context:
space:
mode:
authorzhengxinwei <zhengxinwei@huawei.com>2023-07-26 10:30:29 +0800
committerzhengxinwei <zhengxinwei@huawei.com>2023-07-31 14:40:48 +0800
commitd867aadef495cb874d242e4b9e940c1242e46fef (patch)
treec0ff9928567b465f96e6484ca6543be48f4c0959 /hack/local-up-kubeedge.sh
parentMerge pull request #4884 from fisherxu/check-e2e (diff)
downloadkubeedge-d867aadef495cb874d242e4b9e940c1242e46fef.tar.gz
fix the bug in local-up mode that causes cni to not launch
Signed-off-by: zhengxinwei <zhengxinwei@huawei.com>
Diffstat (limited to 'hack/local-up-kubeedge.sh')
-rwxr-xr-xhack/local-up-kubeedge.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/hack/local-up-kubeedge.sh b/hack/local-up-kubeedge.sh
index 9535621d4..42009e221 100755
--- a/hack/local-up-kubeedge.sh
+++ b/hack/local-up-kubeedge.sh
@@ -21,6 +21,7 @@ LOG_LEVEL=${LOG_LEVEL:-2}
TIMEOUT=${TIMEOUT:-60}s
PROTOCOL=${PROTOCOL:-"WebSocket"}
CONTAINER_RUNTIME=${CONTAINER_RUNTIME:-"remote"}
+echo -e "The installation of the cni plugin will overwrite the cni config file. Use export CNI_CONFIG_FILE=false to disable it."
if [[ "${CLUSTER_NAME}x" == "x" ]];then
CLUSTER_NAME="test"
@@ -254,12 +255,6 @@ build_edgecore
kind_up_cluster
-# install CNI plugins
-if [[ "${CONTAINER_RUNTIME}" = "remote" ]]; then
- # we need to install CNI plugins only when we use remote(containerd) as edgecore container runtime
- install_cni_plugins
-fi
-
export KUBECONFIG=$HOME/.kube/config
check_control_plane_ready
@@ -278,6 +273,12 @@ generate_streamserver_cert
start_cloudcore
+# install CNI plugins
+if [[ "${CONTAINER_RUNTIME}" = "remote" ]]; then
+# we need to install CNI plugins only when we use remote(containerd) as edgecore container runtime
+install_cni_plugins
+fi
+
sleep 2
start_edgecore