top of page

How to pull image from private Docker Registry in Kubernetes cluster 🤔


How do you get Docker images  in your Kubernetes cluster ?

The question 🤔

How do you get Docker images 🐳 in your Kubernetes cluster from private Docker registries like AWS ECR, Nexus, etc?


Context

For images like MongoDB and Elastic, which are hosted on Docker Hub, it’s straightforward, because they are hosted in a public repository, and anyone can access them.


But your own application image is stored in a private repository and needs explicit access from the cluster. So how do you pull the application images from your private docker repository on the Kubernetes cluster?


How to do it 🙌🏼

There are 2 steps to take to achieve it.


1) You create a Secret component that contains access tokens/credentials to your Docker registry.


Example Secret config:

Secret component
Secret component

2) You configure your Deployment component to use that secret using a specific imagePullSecrets attribute.


Example Deployment config:

Deployment component
Deployment component

Note: Pods can only reference image pull secrets in their own namespace, so this process needs to be done one time per namespace!


In the demo video 🎬 I show you the whole process step by step:


 

Want to become a Kubernetes administrator?

Then, check out this comprehensive and practical course to become a Kubernetes administrator and master the Certified Kubernetes Administrator exam 🚀:



2 Comments


sabrina collins
sabrina collins
Dec 07, 2023

My recent positive experience with essay writing service, where all of my essay needs were satisfied, makes me feel compelled to boast. You can rely on our service for all of your academic writing demands; it's more than simply an essay writer. The excellent standard of their work is proof of their commitment to detail and pursuit of excellence. In order to ensure that every customer is satisfied, EssayUSA guarantees both fast delivery and personalized attention. If you are seeking a dependable essay writing service that puts its customers first and offers a combination of quality and reliability, I highly recommend EssayUSA. Both my faith in them and my admiration for them are unwavering.

Like

Quintan Barnes
Quintan Barnes
Oct 18, 2023

I found a treasure trove of visual inspiration and graphic design tips at https://blog.depositphotos.com/7-useful-graphic-design-tips-for-social-media-posts.html. Images have the power to convey messages, emotions, and stories, making them a vital tool for effective social media posts. This resource offers valuable insights to elevate your visual content game.


Like
bottom of page