Simple tutorial to build and deploy a simple Python app in Kubernetes.
You need to replace DOCKER_HUB_USER with your Docker Hub username.
docker build -t <DOCKER_HUB_USER>/phippy .
docker push <DOCKER_HUB_USER>/phippy
You can use the existing commands to build/push/run the app:
make build
make push
make run
make run
curl localhost:5000
docker-compose up -d --scale web=5
kubectl apply -f kubernetes/
kubectl get pods
kubectl get svc
kubectl describe svc phippy
kubectl get nodes
curl <NODE_IP>:<NODEPORT>
kubectl apply -f kubernetes/ingress
kubectl get ingress
kubectl describe ingress phippy
curl http://phippy.local