Open cmoulliard opened 5 years ago
+1
-1 The guide really needs to point to the dev cluster. We should not be spinning up OCP4 Workshops to test workloads. We have a dev cluster that is running all the time exactly for this reason.
Although for workloads that require system:admin a workshop is the only way of doing it.
Feature request
Add a
How To Guide
to:Example
Have an account/pwd: https://account.opentlc.com/account/activateAccountForm.php
account: cmoulliard-redhat.com pwd: xxxxxxxxxx
Login in here : https://rhpds.redhat.com/ Order
ocp workshop
When the ocp4 cluster is created, you will get an email including such infos:
bastion
in order to allow ansible to execute remotely commands against the bastionGit clone the agnosticd project
Create a new folder
roles/ocp-workload-MY_WORKLOAD
and import the files from an existing project such asansible/roles/ocp-workshop-example
Create a bash script under the MY_WORKLOAD folder
ACTION=${1:-create}
HOST_GUID="namur-dfb4" TARGET_HOST="bastion.$HOST_GUID.openshiftworkshop.com"
OCP_USERNAME="cmoulliard-redhat.com" WORKLOAD="ocp-workload-MY_WORKLOAD" GUID=$HOST_GUID
SSH_USER=$OCP_USERNAME SSH_PRIVATE_KEY="id_rsa"
ansible-playbook -i $TARGET_HOST, ./config/ocp-workload.yml \ -e "ansible_ssh_private_key_file=~/.ssh/${SSH_PRIVATE_KEY}" \ -e "ansible_user=${SSH_USER}" \ -e "ocp_username=${OCP_USERNAME}" \ -e "ocp_workload=${WORKLOAD}" \ -e "silent=False" \ -e "guid=${GUID}" \ -e "ACTION=$ACTION" \ -v EOF
./execute_ansible.sh remove
export KUBECONFIG=./snowdrop/kube_cfg.yml oc projects