First off, I'm completely new with Kubernetes and I'm having a hard time with the documentation. I'm trying to figure the behavior of the image option in the run command for kubectl.
kubectl run --image=image
https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#run
Second, as you can see, the documentation is very clear, but not helpful.
-----------------------------------------------
| Flag | Usage |
-----------------------------------------------
| image | The image for the container to run |
-----------------------------------------------
I can't tell what is the expected behavior here. Can someone tell answer some this for me?
- Is this going to try find the image locally first?
- Or will it try to find it locally, and if it doesn't find it, it tries to pull it?
- Or does it default to pulling the image?
- And if it is going try to pull it where is pulling from?
- Does it matter if there are multiple registries listed?
- Also how does this work with images on ECR?
I hope someone can answer this or at least point me to some good documentation or tutorial.
Thanks.