Manager application for Break&Fix with OpenShift workshop
1.3K
This is a set of utilities and resources to be used during the Break & Fix with OpenShift Workshop
Have you ever considered running an OpenShift cluster? Are you scared by the complexity? Join us in this workshop to break and fix some stuff to gain the confidence you need.
Each assistant will start with a non-working OpenShift cluster and the final target will be to run a provided containerized web application after we solve several small and related issues.
Hints will be provided every few minutes and there will be a mechanism to check current progress of the challenge.
Assistants will learn some troubleshooting techniques and experience how to solve some of the most common OpenShift operational and development problems.
This laboratory is intended to be deployed using minishift as an add-on. The add-on will create all the necessary resources to get you started.
break-fixmanager-app application (see manager-app) that will use the previously created service accountdemoapp on the demo namespace (project)./minishift start --profile break-fix --openshift-version v3.9.0
-- Starting profile 'break-fix'
-- Checking if requested hypervisor 'kvm' is supported on this platform ... OK
-- Checking if KVM driver is installed ...
Driver is available at /usr/local/bin/docker-machine-driver-kvm ...
[...OUTPUT OMITTED...]
OpenShift server started.
The server is accessible via web console at:
https://192.168.42.95:8443
You are logged in as:
User: developer
Password: <any value>
To login as administrator:
oc login -u system:admin
$ wget https://github.com/ruromero/break-fix/releases/download/v3.9.0/break-fix-3.9.0.tar.gz
$ tar -xf break-fix-3.9.0.tar.gz
$ ./minishift addons install break-fix
Addon 'break-fix' installed
$ ./minishift addons apply break-fix
-- Applying addon 'break-fix':..........
$ oc get pods -n break-fix --as system:admin -l app=manager-app -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.status.phase}{"\n"}{end}'
manager-app-1-19jhw Running
$ oc get pods -n demo --as system:admin -l app=demoapp -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.status.phase}{"\n"}{end}'
demoapp-1-j4xlx Running
manager-app and start breaking OpenShift$ oc get routes -n break-fix --as system:admin
NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD
manager-app manager-app-break-fix.192.168.42.95.nip.io manager-app 8080-tcp None
Open the route in your favourite browser http://manager-app-break-fix.192.168.42.95.nip.io

The manager-app is a web application that drive you through the workshop. It will break the application and check when it has been fixed. All your progress is stored in your browser. If you want to start over, you can click the Reset button. Cleaning the cache or the cookies won't be enough as it uses the localStorage.
Each level will break the demoapp or some element that will prevent it from being accessible through its route.
oc commands that will break the demoapp and you will have 10 minutes to fix it (if you want to get some points).demoapp through it's route (to verify the end-2-end health of the application). If it succeeds you will get 1 point for each second left and you will be able to move to the next level. See the demoapp README for more details.The Docker images are also published in Docker Hub
oc client.We also included a Web-based OpenShift Command Line utility based on online-oc.
$ oc get routes -n tty --as system:admin
NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD
online-oc online-oc-tty.192.168.42.95.nip.io online-oc 8080-tcp None
Content type
Image
Digest
Size
383.3 MB
Last updated
almost 8 years ago
docker pull ruromero/manager-app