-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
55 lines (44 loc) · 1.2 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
KUBEEDGE_VERSION := v1.4.0
ARCH := arm
KEADM_FNAME := keadm-${KUBEEDGE_VERSION}-linux-${ARCH}
KIND_CLUSTER_NAME := kubeedge
.PHONY: install-keadm logs-edgecore restart-edgecore delete-edgecore local-cluster
README.md: README.ipynb
jupyter nbconvert \
README.ipynb \
--ClearOutputPreprocessor.enabled=True \
--to markdown \
--output README.md
install-keadm:
mkdir -p tempdir
wget \
--directory-prefix ./tempdir \
https://github.com/kubeedge/kubeedge/releases/download/${KUBEEDGE_VERSION}/${KEADM_FNAME}.tar.gz
tar \
--directory ./tempdir \
-xvzf tempdir/${KEADM_FNAME}.tar.gz
cp -r ./tempdir/${KEADM_FNAME}/* ./kubeedge
rm -rf tempdir
logs-edgecore:
journalctl -u edgecore.service -b -f
restart-edgecore:
sudo service edgecore restart
delete-edgecore:
sudo ./kubeedge/keadm/keadm reset
local-cluster:
kind delete cluster \
--name ${KIND_CLUSTER_NAME}
kind create cluster \
--config=config/kind.yaml \
--name ${KIND_CLUSTER_NAME}
install-cloudcore:
kubectl create ns kubeedge || true
helm upgrade --install \
kubeedge \
./charts/kubeedge \
--namespace kubeedge
cloudcore-token:
kubectl get secret \
-n kubeedge \
tokensecret \
-o=jsonpath='{.data.tokendata}' | base64 -d