Created
February 14, 2020 15:20
-
-
Save sjenning/01503436fe6ec3693dbe8960f5e46173 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -eux | |
| export AWS_PROFILE=openshift-dev | |
| export AWS_DEFAULT_REGION=us-west-1 | |
| CLUSTER_NAME=aws | |
| mkdir -p $HOME/clusters | |
| cd $HOME/clusters | |
| if [ -d $CLUSTER_NAME ]; then | |
| echo "$CLUSTER_NAME cluster already exists" | |
| echo "please destroy the previous cluster first" | |
| exit 1 | |
| fi | |
| mkdir -p $CLUSTER_NAME | |
| cd $CLUSTER_NAME | |
| #RELEASE_IMAGE=$(curl https://openshift-release.svc.ci.openshift.org/api/v1/releasestream/4.3.0-0.nightly/latest | jq -r .pullSpec) | |
| RELEASE_IMAGE=registry.svc.ci.openshift.org/ocp/release:4.4.0-0.nightly-2020-02-11-180946 | |
| oc adm release extract --command=openshift-install $RELEASE_IMAGE | |
| cp $HOME/aws-install-config.yaml install-config.yaml | |
| cd .. | |
| $CLUSTER_NAME/openshift-install create cluster --dir=$CLUSTER_NAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment