-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
F image cache #263
F image cache #263
Conversation
@nicholasjackson I noticed that you removed the extra option to specify a hostname for the registry authentication. There was actually a specific reason to support that for gitlab installations, which can require a different hostname for the authentication part then the actual docker registry hostname https://github.com/shipyard-run/docker-registry-proxy#gitlab-auth |
OK, thanks, I will add that back in for you. |
Add the capability to add custom container registries to the image cache
Nomad and Kubernetes clusters are started in a Docker container that does not save any state to the local disk.
This state includes a Docker Image cache, every time an image is pulled to a new cluster, it is downloaded
from the internet. This can be slow and bandwidth-intensive. To solve this problem, Jumppad implemented a pull-through
cache that is used by all clusters. By default, this cache supported the following registries:
To support custom registries, Jumppad has added a new resource type,
container_registry
. This resource type can be usedto define either a local or remote registry. When a registry is defined, it is added to the pull-through cache, and
any authentication details are added to the cache, meaning you do not need to authenticate each pull on the Nomad or
Kubernetes cluster. Any defined registry must be configured to use HTTPS; the image cache can not be used to pull
from insecure registries.
Add capability to add insecure registries and image cache bypass to Kubernetes and Nomad clusters.
All images pulled to Nomad and Kubernetes clusters are pulled through the image cache. This cache is a Docker
container that Jumppad automatically starts. To disable the cache and pull images directly from the internet,
add the
no_proxy
parameter to the new docker config stanza. This will cause the cache to be bypassed andthe image to be pulled directly from the internet.
Add the
insecure_registries
parameter to the docker config stanza to support insecure registries. Thismust be used in conjunction with the
no_proxy
parameter as the image cache does not support insecure registries.@Zortaniac this is an update of your PR #244