I have some questions when I use yaml file to deployment

スクリーンショット 2020-04-30 16.02.51

when I use yaml file to deployment pods like this and use command kubectl apply -f xx.yaml

④image : nginx:latest

where does come from this Nginx image?

Is there any official Kubernetes documents about this?

Best Regards

It depends on the underlying container runtime, in most cases it is docker and will pull from the docker and will pull from docker hub

Just to add some more context, if the container image is not fully qualified it’s assumed to be docker hub.

So when you enter:

nginx:latest

its effectively:

registry.hub.docker.com/library/nginx:latest

If for example you had an on-premise Harbor image registry you would reference it like:

harbor.mycompany.local/library/nginx:latest

Kind regards,
Stephen

Thank you for your comment

it really helps me a lot

Thank you for your comment.

it really helps me a lot