I'm deploying some microservices in gcp kubernentes. I don't know if I need to pay to download images from docker hub by network stuff.
I don't know what image registry to use.
Thanks!
Unless your images are truly huge, it’s unlikely to matter more than a few cents. You do pay less for traffic to GCR but unless we are taking terabytes of images, it rounds down to zero for practical purposes.
Container Registry uses Cloud Storage under the hood to store your images, which publishes its pricing info in this table. You can store 5GB for free, and another 100GB of storage would cost you $2.60/month. Either way your costs are incredibly low. I'd recommend storing in GCR because your deployments will be faster, management will be simpler with everything in one place, and you can easily enable Vulnerability Scanning on your images.
How it could affect my billing if I use docker hub instead of google image registry?
Google Cloud does not charge for ingress traffic. That means there is no cost to downloading an image from Docker hub. You are downloading over the public net, however, so expect push
and pull
to/from GCP to take longer than if you stored images in GCR.