Just so you know, we're only supporting Mac lappys running a recent-ish macOS.
If you run into problems, check out the Hello Minikube walkthrough and Microservices demo on Kubernetes setup instructions.
First you need to install the software and run the demo.
- Read the makefiles, and then run
make setup. It will install the following:- Homebrew, if you don't have it.
VirtualBox, a virtual machine handler.kubectl, which we use to control Kubernetes instances.Minikube, a small-scale Kubernetes instance.- Plus a hypervisor driver that Minikube uses.
- Run
make startto fire up Minikube. It'll take a few mins to get going.- Now,
make show-dashboardwill show you to the Kubernetes dashboard for your Minikube instance.
- Now,
- Run
make get-demoto pull down the microservices-demo codebase. - Run
make deploy-demoto make Kubernetes deploy it to your Minikube instance. - Run
make show-demo-pods, Kubernetes will show you the deployment status of your pods.- Wait until they are all running.
- Run
make show-demo-frontend- Now you can buy socks!
With the microservices demo running, we can run some load testing tools against it.
- Run
make get-gatlingto pull down the Gatling Docker container. - Run
make run-gatlingto run Gatling. It will run load tests against the microservices-demo frontend. - Run
make show-gatling-reportsto show test reports. - Look at
./gatling/user-files/simulations/Simulation.scalato see the test script (Scala) and make changes to it.
- Run
make get-locustto pull down a modified version of the Locust Docker container. - Run
make run-locustto run Locust. It will run load tests against the microservices-demo frontend. - Look at
./locust/locustfile.pyto see the test script (Python) and make changes to it.
To be explained during the session.
- Run
make deleteto delete the Minikube instance.
If you still have problems,
- Run
make destroyto remove all Minikube files.