Praqma / LearnKubernetes

Notes and resources collected together to help learn Kubernetes. This will eventually become a tutorial and later a blog post for praqma website (hopefully!)
527 stars 223 forks source link

Is it possible to use our own Registry? #1

Closed KamranAzeem closed 8 years ago

KamranAzeem commented 8 years ago

Is it possible to use our own registry by specifying it in the local-registry service configuration file? If yes, what happens when we pull some images which are not in our registry? How would kubernetes / nodes know to pull those images from Docker hub?

Andrey9kin commented 8 years ago

We are using local registry for Jenkins as code https://github.com/Praqma/JenkinsAsCodeReference/ in order to use it you need to include registry name into the image name most probably it will pull images from docker hub and act as a proxy but I haven't tryed that

KamranAzeem commented 8 years ago

So I see that it is better to let the "local-registry" run on master and point to the docker hub. For any containers requiring our custom images from our inhouse registry, we can specify that in the pod or deployment config/yaml file, such as:

   spec:
      containers:
      - name: xyz
        image: 10.239.32.81:5000/xyz:0.2.1-SNAPSHOT