- Start the ui (see script), open UI window
- Download the reset.sh and run it
- get the url for the guestbook, open UI window
- Show off resiliance by killing pods in the UI, after 5 kills the quorum is lost See this gist for details why
- When it inevitably loses quorum, run reset.sh again.
Last active
March 28, 2017 12:11
-
-
Save moretea/33414f867ca70adb544d7832ab153d2a to your computer and use it in GitHub Desktop.
Habitat demo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Delete everything | |
| kubectl delete deployment guestbook | |
| kubectl delete deployment redis-ha | |
| kubectl delete statefulset hab-sup-bootstrap-set | |
| kubectl delete svc hab-bootstrap | |
| kubectl delete svc redis-master | |
| kubectl delete svc redis-slave | |
| kubectl delete svc guestbook | |
| # Create the stable endpoint | |
| kubectl apply -f https://raw.githubusercontent.com/ContainerSolutions/bootstrap-habitat-supervisors-on-k8s/master/bootstrap-hab-sup-on-k8s.yml | |
| # Run redis | |
| kubectl apply -f https://raw.githubusercontent.com/ContainerSolutions/habitat-redis-ha-cluster-on-k8s/master/hack/redis.yml | |
| # Run the guestbook | |
| kubectl apply -f https://raw.githubusercontent.com/moretea/habitat-guestbook/master/guestbook.yml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Make sure that minikube is started first | |
| kubectl apply -f https://raw.githubusercontent.com/ContainerSolutions/kuberviz/master/k8s-viz.yml | |
| minikube service k8s-viz --url |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| minikube service guestbook --url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment