The installer provides a guided experience for provisioning the cluster on a particular platform.
In the prior step, we downloaded the following:
- installer (e.g. openshift-install-linux-amd64)
- pull secret
- configured env var for OPENSHIFT_PULL_SECRET_PATH
The install asks the user a set of questions to determine the platform and initial shape of the cluster.
The following demonstrates an install using the wizard as an example.
./openshift-install-linux-amd64 create cluster
? Email Address [email protected]
? Password [? for help] ********
? SSH Public Key ~/.ssh/id_rsa.pub
? Base Domain dev.example.com
? Cluster Name my-cluster
? Pull Secret [? for help] ******
? Platform aws
? Region us-east-2
INFO Using Terraform to create cluster...
INFO Waiting for bootstrap completion...
INFO API v1.11.0+d4cacc0 up
INFO Destroying the bootstrap resources...
INFO Using Terraform to destroy bootstrap resources...
INFO Install complete! Run 'export KUBECONFIG=./auth/kubeconfig' to manage your cluster.
INFO After exporting your kubeconfig, run 'oc -h' for a list of OpenShift client commands.
The following demonstrates an install using the wizard as an example.
./openshift-install-darwin-amd64 create cluster
? Email Address [email protected]
? Password [? for help] ********
? SSH Public Key ~/.ssh/id_rsa.pub
? Base Domain dev.example.com
? Cluster Name my-cluster
? Pull Secret [? for help] ******
? Platform aws
? Region us-east-2
INFO Using Terraform to create cluster...
INFO Waiting for bootstrap completion...
INFO API v1.11.0+d4cacc0 up
INFO Destroying the bootstrap resources...
INFO Using Terraform to destroy bootstrap resources...
INFO Install complete! Run 'export KUBECONFIG=./auth/kubeconfig' to manage your cluster.
INFO After exporting your kubeconfig, run 'oc -h' for a list of OpenShift client commands.
If you want to avoid the wizard, its useful to setup a set of env vars for a particular cloud platform.
## location of previously downloaded pull secret
export OPENSHIFT_INSTALL_PULL_SECRET_PATH=~/Downloads/pull-secret
## location of SSH public key
export OPENSHIFT_INSTALL_SSH_PUB_KEY_PATH=~/.ssh/id_rsa.pub
export OPENSHIFT_INSTALL_PLATFORM=aws
export [email protected]
## name of cluster
export OPENSHIFT_INSTALL_CLUSTER_NAME=my-cluster
export OPENSHIFT_INSTALL_PASSWORD=my-password
export OPENSHIFT_INSTALL_AWS_REGION=us-east-2
export OPENSHIFT_INSTALL_BASE_DOMAIN=devcluster.example.com
./openshift-install-linux-amd64 create cluster
## location of previously downloaded pull secret
export OPENSHIFT_INSTALL_PULL_SECRET_PATH=~/Downloads/pull-secret
## location of SSH public key
export OPENSHIFT_INSTALL_SSH_PUB_KEY_PATH=~/.ssh/id_rsa.pub
export OPENSHIFT_INSTALL_PLATFORM=aws
export [email protected]
## name of cluster
export OPENSHIFT_INSTALL_CLUSTER_NAME=my-cluster
export OPENSHIFT_INSTALL_PASSWORD=my-password
export OPENSHIFT_INSTALL_AWS_REGION=us-east-2
export OPENSHIFT_INSTALL_BASE_DOMAIN=devcluster.example.com
./openshift-install-darwin-amd64 create cluster
Next: Exploring the Cluster