-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathconfig.sh.aws_example
67 lines (48 loc) · 2.27 KB
/
config.sh.aws_example
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
65
66
67
# For a simple AWS configuration, you should only need to set the
# PARENT_DOMAIN for your own configuration. All other defaults should
# just work.
# the domain of the existing public hosted zone that should contain the
# user cluster's public records
# (*configuration required)
export PARENT_DOMAIN=example.com
# namespace in the managed cluster in which to deploy the control plane
export NAMESPACE=hosted
# none, aws, or openstack
export PLATFORM=aws
# network type
export NETWORK_TYPE=OpenShiftSDN
# the base domain for the cluster
export BASE_DOMAIN="${NAMESPACE}.${PARENT_DOMAIN}"
# the name external name on which to connect to the user cluster API server
# IMPACT: kube-apiserver cert generation and admin.kubeconfig server URL
export EXTERNAL_API_DNS_NAME="api.${BASE_DOMAIN}"
# the subdomain to be used for the ingress router
export INGRESS_SUBDOMAIN="apps.${BASE_DOMAIN}"
# the name external name on which to connect to the managed openvpn server
export EXTERNAL_OPENVPN_DNS_NAME="vpn.${BASE_DOMAIN}"
# the external port on which to connect to the user cluster API server
# IMPACT: admin.kubeconfig server URL
# On AWS, defaults to 6443
export EXTERNAL_API_PORT=6443
# the external port on which to connect to the managed openvpn server
export EXTERNAL_OPENVPN_PORT=1194
# the cluster IP to use for openshift-apiserver
export API_CLUSTERIP=172.30.0.20
# OKD/OCP release image from which to get component image pull specs
export RELEASE_IMAGE=$(curl -s "https://origin-release.svc.ci.openshift.org/api/v1/releasestream/4.2.0-0.okd/latest" | jq -r .pullSpec)
# the external port on which to connect to the user cluster API server
# IMPACT: admin.kubeconfig server URL
export API_NODEPORT=31123
# the external port on which to connect to the managed openvpn server
export OPENVPN_NODEPORT=31124
# Nodeport for the router's HTTP endpoint
export ROUTER_NODEPORT_HTTP=32123
# Nodeport for the router's HTTPS endpoint
export ROUTER_NODEPORT_HTTPS=32124
# dynamically set the EXTERNAL_API_IP_ADDRESS created by the contrib/aws/setup-infrastructure.sh script
REPODIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
if [[ -f "${REPODIR}/config_api_ip.sh" ]]; then
source "${REPODIR}/config_api_ip.sh"
fi
# number of replicas for all ha compentry (typically 3)
export REPLICAS=3