Source code has a basic Python code that exposes service endpoint (port:3000) with 'Hello World' page,
Python Requirements:
- flask
- flask-restful
You can use either of 2 methods,
We have pyworld.yaml that consists of deployment and svc template, it deploys a pyworld program into 2 replicas (Load Balanced):
To deploy using Template,
kubectl create -f templates/pyworld.yaml
To Clean the Template Deployments,
kubectl delete -f templates/pyworld.yaml
You could also test this deployment by sourcing local docker image, by running bash script from the root of this repository,
./pyworld.sh
To Cleanup:
kubectl delete deployments,svc pyworld
- Docker
- Minikube
- Python