-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Raffaele Spazzoli <[email protected]>
- Loading branch information
1 parent
54fe5ee
commit 40a1571
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |