The installer accepts a number of environment variable that allow the interactive prompts to be bypassed. Setting any of the following environment variables to their corresponding value, will cause the installer to use that value instead of prompting.
-
OPENSHIFT_INSTALL_BASE_DOMAIN
: The base domain of the cluster. All DNS records will be sub-domains of this base and will also include the cluster name.For AWS, this must be a previously-existing public Route 53 zone. You can check for any already in your account with:
aws route53 list-hosted-zones --query 'HostedZones[? !(Config.PrivateZone)].Name' --output text
-
OPENSHIFT_INSTALL_CLUSTER_NAME
: The name of the cluster. This will be used when generating sub-domains.For libvirt, choose a name that is unique enough to be used as a prefix during cluster deletion. For example, if you use
demo
as your cluster name,openshift-install destroy cluster
may destroy all domains, networks, pools, and volumes that begin withdemo
. -
OPENSHIFT_INSTALL_PLATFORM
: The platform onto which the cluster will be installed. Valid values areaws
andlibvirt
. -
OPENSHIFT_INSTALL_PULL_SECRET
: The container registry pull secret for this cluster (e.g.{"auths": {...}}
). You can get this secret from try.openshift.com. -
OPENSHIFT_INSTALL_PULL_SECRET_PATH
: As an alternative toOPENSHIFT_INSTALL_PULL_SECRET
, you can configure this variable with a path containing your pull secret. -
OPENSHIFT_INSTALL_SSH_PUB_KEY
: The SSH public key used to access all nodes within the cluster (e.g.ssh-rsa AAAA...
). This is optional. -
OPENSHIFT_INSTALL_SSH_PUB_KEY_PATH
: As an alternative toOPENSHIFT_INSTALL_SSH_PUB_KEY
, you can configure this variable with a path containing your SSH public key (e.g.~/.ssh/id_rsa.pub
).
-
AWS_PROFILE
: The AWS profile that corresponds to value in${HOME}/.aws/credentials
. If not provided, the default is "default". -
OPENSHIFT_INSTALL_AWS_REGION
: The AWS region to be used for installation. -
OPENSHIFT_INSTALL_LIBVIRT_URI
: The libvirt connection URI to be used. This must be accessible from the running cluster. -
OPENSHIFT_INSTALL_LIBVIRT_IMAGE
: The URI for the OS image. For example it might be a URI likehttps://example.com/rhcos-qemu.qcow2
or a local file likefile:///tmp/redhat-coreos-maipo-47.78-qemu.qcow2
.Warning: you should only set this if you're testing RHCOS releases. Most users should allow the installer to choose the OS image.