-
Notifications
You must be signed in to change notification settings - Fork 0
/
aws-ocp4-config
57 lines (42 loc) · 2.04 KB
/
aws-ocp4-config
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
# CHECK VARIABLE VALUES ARE BETWEEN DOUBLE QUOTES!
# OpenShift version (must be 4.x.z format)
# https://mirror.openshift.com/pub/openshift-v4/clients/ocp/
OPENSHIFT_VERSION="4.17.10"
# Enter here your RHPDS Lab GUID
RHPDS_GUID="XXXX" # It has two be a number 1 < X < 9999!
# Enter here your RHPDS Lab Top Level Route53 Domain excluding the dot prefix at the beginning. Example: sandbox1234.opentlc.com
RHPDS_TOP_LEVEL_ROUTE53_DOMAIN="sandbox${RHPDS_GUID}.opentlc.com"
# Enter here your cluster name
CLUSTER_NAME="ocp"
# AWS credentials
## AWS Access Key ID
export AWS_ACCESS_KEY_ID=""
## AWS Secret Access Key
export AWS_SECRET_ACCESS_KEY=""
# AWS Region. Change according to your location
# https://docs.openshift.com/container-platform/4.15/installing/installing_aws/installing-aws-user-infra.html#installation-aws-user-infra-rhcos-ami_installing-aws-user-infra
export AWS_DEFAULT_REGION="eu-west-1"
# Enter Pull Secret given from RedHat OpenShift Cluster Manager site (https://console.redhat.com/openshift/downloads#tool-pull-secret) for an AWS IPI installation
# WARNING: FILL THE PULL SECRET BETWEEN SINGLE QUOTES HERE!
RHOCM_PULL_SECRET=''
# This is the base URL to download both CLI and installer. You are not supposed to modify it unless you need to experiment nightly releases.
OCP_DOWNLOAD_BASE_URL="https://mirror.openshift.com/pub/openshift-v4/clients/ocp"
# Machines configuration
# https://aws.amazon.com/ec2/instance-types/
# https://aws.amazon.com/ec2/pricing/on-demand/
## 1) Normal worker => WORKER_INSTANCE_TYPE=m7i.2xlarge
## 2) Large Worker => WORKER_INSTANCE_TYPE=m7i.4xlarge
# Option 1: Multi-node OCP
WORKER_INSTANCE_TYPE=m7i.2xlarge # Normal worker nodes
# WORKER_INSTANCE_TYPE=m6id.4xlarge # ODF nodes with LSO
WORKER_REPLICAS=1
MASTER_INSTANCE_TYPE=m7i.xlarge
# # Option 2: Single-node OCP
# WORKER_REPLICAS=0
# MASTER_INSTANCE_TYPE=m7i.4xlarge
# MASTER_REPLICAS=1
# OCP SSL Certificates and GitOps configuration
INSTALL_LETS_ENCRYPT_CERTIFICATES=true
INSTALL_OPENSHIFT_GITOPS=true
# ./aws-ocp4-install.sh ./aws-ocp4-config-labs