Skip to content

Commit

Permalink
cleansing
Browse files Browse the repository at this point in the history
Signed-off-by: Raffaele Spazzoli <[email protected]>
  • Loading branch information
raffaelespazzoli committed Nov 11, 2020
1 parent 54fe5ee commit 40a1571
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
24 changes: 24 additions & 0 deletions 4.0/setup.sh1
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
3 changes: 3 additions & 0 deletions cluster1-acm/.openshift_install.log
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"

0 comments on commit 40a1571

Please sign in to comment.