Installing a cluster quickly on OCI with platform agnostic (None)
Script containing all steps described in the guide.
Requirements
# AWS Credentials
AWS_ACCESS_KEY_ID="AK..."
AWS_SECRET_ACCESS_KEY="[superSecret]"
AWS_DEFAULT_REGION="${CLUSTER_REGION}"
Install
DISTRIBUTION="ocp"
RELEASE_REPO="quay.io/openshift-release-dev/ocp-release"
VERSION="4.14.0-rc.2"
RELEASE_VERSION="${VERSION}-x86_64"
PULL_SECRET_FILE="${HOME}/.openshift/pull-secret-latest.json"
# Provider Information
export CONFIG_PROVIDER=aws
export CONFIG_PLATFORM=none
# Cluster Install Configuration
CLUSTER_NAME="mycluster"
CLUSTER_REGION=us-east-1
CLUSTER_DOMAIN="aws.example.com"
# okd-installer config
cat <<EOF > ${VARS_FILE}
provider: ${CONFIG_PROVIDER}
config_platform: ${CONFIG_PLATFORM}
cluster_name: ${CLUSTER_NAME}
config_cluster_region: ${CLUSTER_REGION}
config_cluster_version: ${VERSION}
version: ${VERSION}
cluster_profile: ha
destroy_bootstrap: no
config_base_domain: ${CLUSTER_DOMAIN}
config_ssh_key: "$(cat ~/.ssh/openshift-dev.pub)"
config_pull_secret_file: "${PULL_SECRET_FILE}"
EOF
ansible-playbook mtulio.okd_installer.create_all \
-e cert_max_retries=30 \
-e cert_wait_interval_sec=60 \
-e @$VARS_FILE