Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying Docker image to Kubernetes

I have been working with Docker the last days and I have created a basic Docker image with a Dockerfile. It just starts a web server. Now, I have been reading further and created an account at Google Application Engine and want to deploy this image to Kubernetes.

I feel lost.

I don't understand how my Dockerfiles that I have locally is ment to be transferred to this platform? Don't I use them at all? I have seen some examples of Pod configuration but as far I can see they refer to images at Docker Hub?

Could someone point me in the right direction on what to do?

like image 489
LuckyLuke Avatar asked May 18 '26 14:05

LuckyLuke


1 Answers

I have not worked with Kubernetes, but as far as I know, I think you have to upload to containers to a docker image repository. You can use the official hub and upload your images there (public images are free to upload, and you can have one private for free or pay for more). Also you can have a private docker image repository, and configure kubernetes to use it.

As I understand from this post, you can run link a Google Cloud bucket with a docker repository running locally, then configure a kubernetes pod to point to that bucket, and all the rest of your pods can consume docker images from there.

like image 135
Javier Cortejoso Avatar answered May 20 '26 12:05

Javier Cortejoso



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!