Below script would help you to reuse the same cluster subdomain for each new cluster deployment.
Note: Make sure that you pass correct values to HOSTED_ZONE_ID
and NAME
.
bash pre-install.sh <HOSTED_ZONE_ID> <NAME>
...
$INSTALLER_DIR/openshift-install --dir . create cluster
Note: It is assumed that cert files are present in $PWD/certificates.
bash post-install.sh
bash quay_setup.sh
Use oc get routes
and use the route to access quay.The default username is quay
and password is password
.
Create an organisation named clairv4
.
Create a repo.
Tag an image according to the route,org name,repo and tag.
For example
docker pull quay.io/rafiu007/clair:pyvuln
docker tag quay.io/rafiu007/clair:pyvuln quay-xyz-abc.io/clairv4/flask:image1
.
Push the image.
docker push quay-xyz-abc.io/clairv4/flask:image1
.
Note:
Here route is quay-xyz-abc.io
org name is clairv4
repo is flask
tag is image1
Use quay-xyz-abc.io/clairv4/flask:image1
as image in your workload.
Note: It is assumed that install-config
has been created and stored in $PWD using $INSTALLER_DIR/openshift-install --dir=. create install-config
.
bash pre-install.sh && $INSTALLER_DIR/openshift-install --dir . create cluster && bash post-install.sh && bash quay_setup.sh