forked from claritylab/lucida
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstart_services.sh
executable file
·44 lines (35 loc) · 965 Bytes
/
start_services.sh
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
#!/bin/bash
echo "Assume that the local cluster is set up."
kubectl cluster-info
kubectl describe node
filelist=$(ls ./*-controller.yaml)
if [ "${filelist}" != "" ]; then
for d in ${filelist}; do
echo "***** ${d}"
kubectl delete -f "${d}"
done
fi
filelist=$(ls ./*-service.yaml)
if [ "${filelist}" != "" ]; then
for d in ${filelist}; do
echo "***** ${d}"
kubectl delete -f "${d}"
done
fi
filelist=$(ls ./*-service.yaml)
if [ "${filelist}" != "" ]; then
for d in ${filelist}; do
echo "***** ${d}"
kubectl create -f "${d}" --validate=false
done
fi
filelist=$(ls ./*-controller.yaml)
if [ "${filelist}" != "" ]; then
for d in ${filelist}; do
echo "***** ${d}"
kubectl create -f "${d}" --validate=false
done
fi
kubectl get services
kubectl get pod
echo "Run 'watch kubectl get pod' to monitor the pods. Open your browser after all pods have the status 'running'."