-
Notifications
You must be signed in to change notification settings - Fork 4.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
add registryMirrors #2893
add registryMirrors #2893
Conversation
Hi @qqshfox. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
The PR that I have open for self hosting all the assets will assist with this. You will be able to point to which ever repo you want for either binaries or containers. I am currently refactoring it based on another pr that will come in first. |
@chrislovecnm not only will the mirrors benefit the cluster provisioning but also all the images pulling for any pods. I think it's different purpose with the PR you mentioned. |
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.
Looks great! A few comments:
Please provide:
- documentation, you can include examples in cluster spec document.
- code level docs on Registry Mirrors
- I think we have docker unit tests, so please update the test, or file and issue to provide a test later on.
Open questions:
How have you tested this? Which k8s versions?
Appreciate the PR as always!
InsecureRegistry *string `json:"insecureRegistry,omitempty" flag:"insecure-registry"` | ||
MTU *int32 `json:"mtu,omitempty" flag:"mtu"` | ||
InsecureRegistry *string `json:"insecureRegistry,omitempty" flag:"insecure-registry"` | ||
RegistryMirrors []string `json:"registryMirrors,omitempty" flag:"registry-mirror,repeat"` |
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.
Can we get code level documentation for this?
/ok-to-test |
Done.
Done.
Added a test to
Yes. On v1.6.2. |
7bf86ef
to
fee6735
Compare
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.
LGTM
LGTM, and this is the approach used in GCE kube-up (for example): https://github.com/kubernetes/kubernetes/blob/8316bbc14ce822ae8de6707a71396fb58dafe1f1/cluster/gce/configure-vm.sh#L786 |
Thanks @qqshfox |
Since the network access to the official registry is quite slow in China, we usually use a mirror instead. But currently there is no way to set this options.