jamiehannaford / what-happens-when-k8s

🤔 What happens when I type kubectl run?

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What happens when pod getting created 2nd time

Tibingeo opened this issue · comments

If we have 3 nodes running, 1 pod running in 1 of the node which has 1 container running in that if we tag that container and commit and push that image to registry and delete the pods, next time when iam creating pod with same image with ImagePullPolicy: IfNotPresent tag,
Will kubernetes create pod in same node where pod was running before ? as image is already there in that node and docker no need to pull image from ECR instead it can use local image.
Or Will be same like https://github.com/eBay/Kubernetes/blob/master/docs/devel/scheduler.md (edited)
How pod is scheduled to a suitable node 2nd time ?