Just a little sample project to show how to setup a web app using Python, FastAPI, Docker and K8s.
- You can build and run with just docker or use docker-compose e.g.
docker-compose up
- Vist localhost in your browser
- Build a docker image and then push it to a repository.
- There are some example manifests file you can use to create a basic deployment and service. You need to change the image to the image you just pushed. You can use
kubectl apply -f manifests
to apply all manifests to your k8s cluster. - To get an url to your app you can use an ingress