-
Notifications
You must be signed in to change notification settings - Fork 1
/
launch-everything.sh
executable file
·57 lines (51 loc) · 1.71 KB
/
launch-everything.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
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
echo "
################################################################################
# MASTER 'ON-SWITCH' SCRIPT
################################################################################
"
source \
~/jupyter-kubernetes-aws/.config
source \
~/jupyter-kubernetes-aws/aws/build-kubernetes.sh
source \
~/jupyter-kubernetes-aws/aws/deploy-kubernetes.sh
SUCCESS_COUNT=0
while [[ $SUCCESS_COUNT -lt 4 ]]
do
echo "Performing cluster validation checkpoints every 30 seconds..."
sleep 30
VALID=$( \
source \
~/jupyter-kubernetes-aws/aws/validate-kubernetes-deployment.sh \
| grep "Your cluster $NAME is ready" \
)
if [[ $VALID == "Your cluster $NAME is ready" ]]
then
((SUCCESS_COUNT++))
echo "Cluster showing ready at checkpoint #$SUCCESS_COUNT"
echo "Waiting for 4 successful consecutive checkpoints..."
else
SUCCESS_COUNT=0
echo "Cluster not ready..."
fi
done
echo "Cluster is ready for use..."
source \
~/jupyter-kubernetes-aws/aws/validate-kubernetes-deployment.sh
# Container Network Interface Security
source \
~/jupyter-kubernetes-aws/kubernetes/container-network-interface/weave-net/encrypt-weave-net.sh
# PersistentVolumes and PersistentVolumeClaims
source \
~/jupyter-kubernetes-aws/kubernetes/persistent-volume/aws-ebs/adjust-ebs-gp2-storage-class.sh
source \
~/jupyter-kubernetes-aws/kubernetes/persistent-volume/aws-efs/create-efs-aws.sh
source \
~/jupyter-kubernetes-aws/kubernetes/persistent-volume/aws-efs/deploy-efs-provisioner.sh
# Ingress
source \
~/jupyter-kubernetes-aws/kubernetes/ingress-controller/install-nginx-ingress-controller.sh
# NodePorts
source \
~/jupyter-kubernetes-aws/kubernetes/node-port/authorize-node-port-traffic.sh