-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
Configure TLS for private v2 registry mirrors. #14829
Conversation
if err != nil { | ||
return &tls.Config{}, err | ||
} | ||
tlsConfig, err := s.TlsConfig(mirrorUrl.Host) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can simply return s.TlsConfig(...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed with this.
LGTM after fixing the error returns. |
I wonder what happens with v1 mirrors |
Can you clarify what the original behavior was that was causing problems? |
EDIT: I agree with you that it should be clarified in the commit / PR description. |
without calling the |
@tiborvass to clarify my understanding, the issue is that it was not using certificates from |
@tiborvass To your comment above the section, I don't think v1 mirrors should even be included in that list. V1 mirrors do not mirror the index and those endpoints should only be indexes. |
@RichardScothern feel free to remove v1 mirrors in that LookupEndpoints list. |
a9f64f4
to
195fb4f
Compare
LGTM |
Let's make it clearer in the commit message and PR description that this is fixing private v2 mirrors and public v2 mirrors were working just fine. |
If a registry mirror is using TLS, ensure that certs for it are picked up from /etc/docker/certs.d Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
V1 mirrors do not mirror the index and those endpoints should only be indexes. Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
195fb4f
to
6b36a48
Compare
LGTM |
Configure TLS for private v2 registry mirrors.
Signed-off-by: Richard Scothern richard.scothern@gmail.com
Closes #14823
cc @tiborvass @dmcgowan