forked from Ducharme/infraAsCodeShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain_create_k8s.sh
More file actions
34 lines (24 loc) · 877 Bytes
/
main_create_k8s.sh
File metadata and controls
34 lines (24 loc) · 877 Bytes
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
#!/bin/sh
CREATE_KUBERNETES="TRUE"
##################################################
########## Common #############
##################################################
echo "Common >> Calling ./set_common_env-vars.sh"
. ./set_common_env-vars.sh
##################################################
########## Kubernetes Cluster #############
##################################################
if [ "$CREATE_KUBERNETES" = "TRUE" ]; then
echo "Calling ./eksctl/create_cluster.sh"
. ./eksctl/create_cluster.sh
fi
##################################################
########## Kubernetes Apps #############
##################################################
if [ "$CREATE_APPS" = "TRUE" ]; then
echo "Calling ./eks/deploy_apps.sh"
. ./eks/deploy_apps.sh
echo "Calling ./cdn/add_elb.sh"
. ./cdn/add_elb.sh
fi
echo "FINISHED!"