I want to understand better how Kubernetes works,and there are some doubts I haven't founded answer in documentation.
I have a simple Kubernetes Cluster, a Master, and 2 Workers. I have created a docker image of my app which is stores in dockerhub.
I created a deployment_file.yaml, where I state that I want to deploy my app container in worker 3, thanks to node affinity.
If imagePullPolicy set to Always
Who is downloading the image from dockerhub, the master itself, or is it the worker were this image will be deployed??? If it is the master who pulls the image, then it transfer replicas of this images to the workers?
When a the image is pulled, is it stored in any local folder in kubernetes?
I would like to understand better how data is transferred. Thanks.