0

I have a private registry that I had no problem connecting to with my kubernetes cluster... but it is having to pull ~1GB image from one side of the US to the other when ever I scale up my cluster. So I have setup a docker registry service as a mirror on a Vultr instance and that is working fine.. But I cannot for the life of me figure out where I am to put the registryMirrors definition in my kubernetes cluster.

Most tutorials just talk about updating the docker/daemon.json file. And this one shows this...

spec:
  docker:
    registryMirrors:
      - https://docker-hub-mirror.internal.example.com

but I have no idea where to add that using kubectl.

I have been using docker for years... but this is my first time using kubernetes. And I have a pages full of purple links in my google searches for this.. so I am really struggling. I find the kubernetes docs lacking when it comes to defining the yaml spec files, I have no idea where that is documented. Docker's docker-compose specification documentation is great in comparison.. but maybe I am just not looking in the right place.

byoungb
  • 163
  • 1
  • 7

0 Answers0