These are the steps needed to set up and run this demo. Detailed instructions follow:
- Provision
Red Hat Developer Hub Demo
from Red Hat Demo Platform - Upload templates to RHDH and create base app images (container and VM)
- Enable OpenShift Service Mesh Operators (multiple)
- Create Service Mesh Control Plane (
istio-system
)
- Provision the following Demo from Red Hat Demo Platform
- Login to OpenShift cli using the provided credentials from the Developer Hub Access Demo details
Example:
oc login -u admin -p 12345 https://api.cluster-abcd.abcd.sandbox42069.opentlc.com:6443
Login successful.
You have access to 88 projects, the list has been suppressed. You can list all projects with 'oc projects'
Using project "default".
- Once provisioned, note the URL and Password for gitlab example (you will use this info later):
export GITLAB_HOST=$(oc get route/gitlab -n gitlab -o jsonpath={.spec.host})
export GITLAB_PASSWORD=$( oc get secret gitlab-secret -n gitlab --template={{.data.GITLAB_ROOT_PASSWORD}} | base64 -d)
- Ansible cli is installed on your local workstation
PyYAML
python library is installed on your local workstationkubernetes
python library is installed on your local workstationtyping-extension
python library is installed on your local workstation
python3.11 -m venv .venv
source .venv/bin/activate
pip install -r ./ansible/requirements.txt
You will need to run an ansible playbook to configure the additional items that will be required for this demo.
Run the ansible playbook substituting the values for your root password from the demo.redhat.com console and the gitlab dns hostname as well
cd ansible
ansible-playbook --extra-vars "gitlab_host=${GITLAB_HOST}" --extra-vars "root_password=${GITLAB_PASSWORD}" ./create_ocp_environment.yaml
Notes:
- Do not include
https://
in theGITLAB_HOST
variable - If you see a python error when running the playbook, add the following env variable to the
ansible-playbook
command:
-e 'ansible_python_interpreter=$(which python3.11)’
This playbook will create two pinelines/pipeline runs
- namespace
openshift-virtualization-os-images
- pipeline runwindows-efi-installer
- namespace
build-dotnet
- pipeline runsolacetk-ui
Wait for these pipelineruns to complete before proceeding to the next steps.
windows-efi-installer
can take awhile to complete... go get some coffee... take the dog for a walk, etc...
It took 38 minutes last time I waited for completion.