-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnew-w1.sh
64 lines (44 loc) · 1.81 KB
/
new-w1.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
58
59
60
61
62
63
64
# Deployment name
export NAME="phenomenal-example-1"
export PORTAL_DEPLOYMENT_REFERENCE="id-phnmnl-example-1"
# Paths to public and private keys for the deployment
export PUBLIC_KEY=""
export PRIVATE_KEY=""
# Vars for the operation of the deployment
export PORTAL_DEPLOYMENTS_ROOT="$PWD/deployments"
export PORTAL_APP_REPO_FOLDER="$PWD"
deployment_dir="$PORTAL_DEPLOYMENTS_ROOT/$PORTAL_DEPLOYMENT_REFERENCE"
if [[ ! -d "$deployment_dir" ]]; then
mkdir -p "$deployment_dir"
fi
printf 'Using deployment directory "%s"\n' "$deployment_dir"
# Vars passed to terraform
export TF_VAR_kube_api_pwd="your-password"
export TF_VAR_cluster_name=$NAME
export TF_VAR_public_key_path=$PUBLIC_KEY
# OpenStack specific settings and flavours
export TF_VAR_network_name="PhenoMeNal-k8s_private"
export TF_VAR_floatingip_pool="ext-net"
export TF_VAR_flavor_k8s_node="f3fcc537-c1fc-4108-a174-eb5bf52e7481"
export TF_VAR_flavor_k8s_master="6a36101a-21c7-4b97-ac4d-9343fe784028"
export TF_VAR_flavor_gfs_node="6a36101a-21c7-4b97-ac4d-9343fe784028"
## OS images for k8s and glusterfs
# This images must be currently there
export TF_VAR_image="Ubuntu16.04"
export TF_VAR_ssh_user="ubuntu"
export TF_VAR_image_gfs="Ubuntu16.04"
export TF_VAR_ssh_user_gfs="ubuntu"
## Cluster layout (how many masters, how many nodes, etc).
export TF_VAR_number_of_etcd="0"
export TF_VAR_number_of_k8s_masters="1"
export TF_VAR_number_of_k8s_masters_no_floating_ip="2"
export TF_VAR_number_of_k8s_masters_no_etcd="0"
export TF_VAR_number_of_k8s_masters_no_floating_ip_no_etcd="0"
export TF_VAR_number_of_k8s_nodes_no_floating_ip="3"
export TF_VAR_number_of_k8s_nodes="1"
export TF_VAR_number_of_gfs_nodes_no_floating_ip="3"
export TF_VAR_gfs_volume_size_in_gb="180"
# Variables for ansible
export KUBELET_DEPLOYMENT_TYPE="host"
export KUBE_VERSION="v1.8.2"
ostack/deploy.sh