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 ##############################################################################
13 NGINX=$(sudo docker ps | grep nginx | wc -l)
14 KUBEPROXY=$(sudo docker ps | grep k8s.gcr.io | wc -l)
19 source config_kubeedge > /dev/null 2>&1
24 if [ -d "$GOPATH/src/github.com/kubeedge/kubeedge/keadm" ]; then
25 cd $GOPATH/src/github.com/kubeedge/kubeedge/keadm
26 ./keadm reset --k8sserverip $MASTERNODEIP:8080
31 if [ -f "certs.tgz" ]; then
35 if [ -d "/etc/kubeedge/ca" ]; then
36 sudo rm -rf /etc/kubeedge/ca
39 if [ -d "/etc/kubeedge/certs" ]; then
40 sudo rm -rf /etc/kubeedge/certs
43 if [ -d "/root/go/src" ]; then
44 sudo rm -rf /root/go/src
47 # stop binaries edge_core
50 if [ -f "edge_core" ]; then