2 ##############################################################################
3 # Copyright (c) 2019 Huawei Tech and others.
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
15 reset="kubeedge reset --k8sserverip ${masternodeip}:8080"
20 nodeusr=$(echo ${nodeinfo} | cut -d"|" -f1)
21 nodeip=$(echo ${nodeinfo} | cut -d"|" -f2)
22 nodepaswd=$(echo ${nodeinfo} | cut -d"|" -f3)
23 masternodeip=$(echo ${nodeinfo} | cut -d"|" -f3)
25 sshpass -p ${nodepaswd} \
26 kubeedge reset --k8sserverip ${masternodeip}:8080