Tutorial to build and deploy a simple Python app in Kubernetes. The walkthrough is available here.
Make sure that you have access to a Kubernetes cluster.
Build a Docker image from existing Python source code and push it to Docker Hub. Replace DOCKER_HUB_USER with your Docker Hub username.
cd Docker
docker build -t <DOCKER_HUB_USER>/web .
docker push <DOCKER_HUB_USER>/web
Edit and replace docker-compose.yml to <DOCKER_HUB_USER>/web
docker-compose up -d
curl localhost:3000
cd ../Kubernetes
kubectl create -f db-pod.yml
kubectl create -f db-svc.yml
kubectl create -f web-pod.yml
kubectl create -f web-svc.yml
kubectl create -f web-rc.yml
kubectl get pods
kubectl get svc
kubectl describe svc web
kubectl get nodes
curl <NODE_IP>:<NODEPORT>