This one day hands-on cloud-native workshops provides developers and introduction to cloud-natives applications and gives them an experience of building cloud-native applications using OpenShift, Spring Boot, WildFly Swarm, Vert.xt and more.
-
Introduction to Monitoring on OpenShift
-
Preparing your coolstore environment
-
Debugging Cloud Native Applications on OpenShift
-
Kibana Dashboard for Developers
-
Application monitoring in OpenShift with Prometheus and Grafana
-
Prometheus Alert Manager
-
Exporters
An APB is provided for
deploying the Cloud-Native Workshop infra (lab instructions, Nexus, Gogs, CodeReady Workspaces, etc) in a project
on an OpenShift cluster via the service catalog. In order to add this APB to the OpenShift service catalog, log in
as cluster admin and perform the following in the openshift-ansible-service-broker
project :
-
Edit the
broker-config
configmap and add this snippet right afterregistry
:
- name: dh
type: dockerhub
org: openshiftapb
tag: ocp-3.11
white_list: [.*-apb$]
-
Redeploy the
asb
deployment
You can read more in the docs on how to configure the service catalog.
Tip
|
If you are using the OpenShift Workshop in RHPDS, this APB is already available in your service catalog. |
As an alternative, you can also run the APB directly in a pod on OpenShift to install the workshop infra:
oc login
oc new-project lab-infra
oc run apb --restart=Never --image="openshiftapb/cloudnative-workshop-apb:ocp-3.11" \
-- provision -vvv -e namespace=$(oc project -q) -e openshift_token=$(oc whoami -t)
Or if you have Ansible installed locally, you can also run the Ansilbe playbooks directly on your machine:
oc login
oc new-project lab-infra
cd apb
ansible-galaxy install ansible.kubernetes-modules
ansible-galaxy install ansibleplaybookbundle.asb-modules
ansible-galaxy install -r requirements.yml
ansible-playbook -vvv playbooks/provision.yml \
-e namespace=$(oc project -q) \
-e openshift_token=$(oc whoami -t) \
-e openshift_master_url=$(oc whoami --show-server)
Tip
|
If you have used the above workshop installer, the lab instructions are already deployed. |
oc new-app quay.io/osevg/workshopper:latest --name=guides \
-p LOG_TO_STDOUT=true \
-p WORKSHOPS_URLS="https://raw.githubusercontent.com/openshift-labs/openshift-logging-monitoring/ocp-3.11/_openshift-logging-monitoring-codeready.yml"
-p WORKSHOPS_URLS="https://raw.githubusercontent.com/openshift-labs/cloud-native-guides/ocp-3.11/_cloud-native-workshop-codeready.yml"
oc expose svc/guides
docker run -it --rm -p 8080:8080 \
-v $(pwd):/app-data \
-e LOG_TO_STDOUT=true \
-e CONTENT_URL_PREFIX="file:///app-data" \
-e WORKSHOPS_URLS="file:///app-data/_openshift-logging-monitoring-codeready.yml" \
-e WORKSHOPS_URLS="file:///app-data/_cloud-native-workshop-codeready.yml" \
quay.io/osevg/workshopper:latest