Running python flask app which shows the POD-ID where application is running
First we will use some other image for deployment than we will update that deployment to use this image.
kubectl.exe run myflaskapp-forminikube --image=docker.io/mjindal/myflaskapp-forminikube:latest --port=5000
kubectl expose deployment/myflaskapp-forminikube --type="NodePort" --port 5000
minikube.exe service myflaskapp-forminikube --url
you should see the container id where app is running .
kubectl.exe scale deployment myflaskapp-forminikube --replicas 5
Refresh the browser you should see different-different container id.
kubectl.exe get pods
kubectl.exe scale deployment myflaskapp-forminikube --replicas 1
kubectl set image deployments/myflaskapp-forminikube myflaskapp-forminikube=mjindal/myflaskapp:latest
What things you need to install the software and how to install them
Download kubectl and minikube.
Extract both in one folder and add the folder in path.
A step by step series of examples that tell you have to get a development env running
Install minikube
Install Kubectl
Start Minikube
export PATH = $PATH:installation_dir
minikube start