diff --git a/4.0/setup.sh1 b/4.0/setup.sh1 new file mode 100644 index 0000000..c35f041 --- /dev/null +++ b/4.0/setup.sh1 @@ -0,0 +1,24 @@ + +set -o nounset +set -o errexit + +function create_openshift() +{ + mkdir -p ./cluster$CLUSTER_ID + cp ./config/install-config-raffa$CLUSTER_ID.yaml ./cluster$CLUSTER_ID/install-config.yaml + #~/Downloads/openshift-install-linux-4.4.0-0.nightly-2020-02-17-103442/openshift-install create cluster --dir ./cluster$CLUSTER_ID --log-level debug + openshift-install create cluster --dir ./cluster$CLUSTER_ID --log-level debug + export KUBECONFIG=/home/rspazzol/git/openshift-enablement-exam/4.0/cluster1/auth/kubeconfig + # create route + oc create route reencrypt apiserver --service kubernetes --port https -n default + # add simple user + htpasswd -c -B -b ./cluster$CLUSTER_ID/auth/htpasswd raffa raffa + oc create secret generic htpass-secret --from-file=htpasswd=./cluster$CLUSTER_ID/auth/htpasswd -n openshift-config + oc apply -f ../misc4.0/htpasswd/oauth.yaml -n openshift-config + oc adm policy add-cluster-role-to-user cluster-admin raffa +} + +#download_installer +#configure_aws_credentials +CLUSTER_ID=1 create_openshift +#CLUSTER_ID=2 create_openshift \ No newline at end of file diff --git a/cluster1-acm/.openshift_install.log b/cluster1-acm/.openshift_install.log new file mode 100644 index 0000000..fc37a3e --- /dev/null +++ b/cluster1-acm/.openshift_install.log @@ -0,0 +1,3 @@ +time="2020-11-11T10:50:31-05:00" level=debug msg="OpenShift Installer 4.5.7" +time="2020-11-11T10:50:31-05:00" level=debug msg="Built from commit baccbcfbbeed464b45a33f00ced17dfe8134fd7b" +time="2020-11-11T10:50:31-05:00" level=fatal msg="Failed while preparing to destroy cluster: open cluster1-acm/metadata.json: no such file or directory"