-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetupKind.sh
More file actions
38 lines (28 loc) · 1.36 KB
/
setupKind.sh
File metadata and controls
38 lines (28 loc) · 1.36 KB
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
# delete kind cluster if it exists
kind delete cluster --name cws-kind
# clean and create folders for data
sudo rm -r /tmp/kind/data/shared /dev/shm/kind/localfiles/nodeC /dev/shm/kind/localfiles/node1 /dev/shm/kind/localfiles/node2 /dev/shm/kind/localfiles/node3 /tmp/kind/data/nfs /tmp/kind/data/shared-experiments
mkdir -p /tmp/kind/data/shared /dev/shm/kind/localfiles/nodeC /dev/shm/kind/localfiles/node1 /dev/shm/kind/localfiles/node2 /dev/shm/kind/localfiles/node3 /tmp/kind/data/nfs /tmp/kind/data/shared-experiments
# create kind cluster
kind create cluster --config kind-config.yaml
#allow scheduling to master
kubectl taint nodes --all node-role.kubernetes.io/control-plane:NoSchedule-
# label the nodes
kubectl label nodes --all usedby=flehmann
kubectl label nodes cws-kind-control-plane management=true
# set namespace to flehmann
kubectl create ns flehmann
kubectl config set-context --current --namespace=flehmann
# create the shared pvcs
kubectl apply -f pv-data.yaml
kubectl apply -f ../setup/download-pod.yaml
kubectl wait --for=condition=ready pod download-pod -n flehmann --timeout=30m
sleep 10
# download the inputs for the pattern experiments (smallest ones)
cd ../setup
bash setup-inputs.sh allIntoOne
bash setup-inputs.sh chain
bash setup-inputs.sh fork
bash setup-inputs.sh group
bash setup-inputs.sh groupMultiple
kubectl delete pod download-pod -n flehmann