- Python 3
- pipenv
- Minikube
pipenv install \
&& pipenv shell \
&& ./build.sh
By default, this will pull an image from a remote repository. If you made local
changes to the FlaskBuddy.py
, you'll need to modify the following
instructions.
$ mfa 123456 --k8s
$ kubectl apply -f buddies.yml
Starting flaskbuddy_bob_1 ... done
Starting flaskbuddy_ann_1 ... done
This will start two Containers using the same trivial Python Flask application that communicate with one another.
$ curl http://localhost:8080
{"hostname":"5e316be14341"}
$ curl http://localhost:8081
{"hostname":"1e884d7fa633"}
$ curl http://localhost:8080/buddy
{"buddy":{"hostname":"1e884d7fa633"},"me":"5e316be14341"}
$ curl http://localhost:8081/buddy
{"buddy":{"hostname":"5e316be14341"},"me":"1e884d7fa633"}