-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 registry.k8s.io as a containerd registry endpoint. #13878
Conversation
Can one of the admins verify this patch? |
/assign @spowelljr @afbjorklund |
Surely this will be handled by containerd anyway, and fixed when kubeadm changes the URL ? |
@@ -103,6 +103,8 @@ oom_score = 0 | |||
[plugins."io.containerd.grpc.v1.cri".registry.mirrors] | |||
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"] | |||
endpoint = ["https://registry-1.docker.io"] | |||
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."k8s.gcr.io"] |
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.
the default was supposed to be whatever the containerd config default
spits out
we added it, so that it was easier to see which config was added by minikube
@@ -49,14 +49,14 @@
startup_delay = "100ms"
[plugins."io.containerd.grpc.v1.cri"]
disable_tcp_service = true
- stream_server_address = "127.0.0.1"
- stream_server_port = "0"
+ stream_server_address = ""
+ stream_server_port = "10010"
stream_idle_timeout = "4h0m0s"
enable_selinux = false
selinux_category_range = 1024
sandbox_image = "k8s.gcr.io/pause:3.2"
stats_collect_period = 10
- systemd_cgroup = false
+ systemd_cgroup = true
enable_tls_streaming = false
max_container_log_line_size = 16384
disable_cgroup = false
Then of course we forgot to update it after containerd version was upgraded.
But it shouldn't have any non-standard configuration, only upstream default.
It's unclear when containerd will do the switch. Possible it get introduced in 1.7. We want to add a transparent way to use the new endpoint without major impact. |
If the idea is to deprecate "k8s.gcr.io" at some point, then we need solutions for all container runtimes Similar to how minikube provides image mirrors for people that don't have direct access to GCR at all
|
Note that most of the minikube traffic goes to storage.googleapis.com
There should be no need to hit the registry, for anything included in k8s Especially it does not need pulling new images for every new cluster ?
These can be cached on the host, and re-used for new clusters without download. |
Currently registry.k8s.io is a pure redirect to k8s.gcr.io with no modification on the http requests sent by the container runtimes. The same buckets will be hit by any minikube instance. containerd will redirect the request to k8s.gcr.io if registry.k8s.io is inaccessible. |
Related: - kubernetes/k8s.io#3411 The Kubernetes project is moving away from k8s.gcr.io to registry.k8s.io registy.k8s.io is currently redirecting to k8s.gcr.io. Each time minikube is started using containerd as a runtime, the container images from k8s.gcr.io will be pulled through registry.k8s.io. Annonce: https://groups.google.com/g/kubernetes-sig-testing/c/U7b_im9vRrM/m/7qywJeUTBQAJ Signed-off-by: Arnaud Meukam <[email protected]>
47c4720
to
a4ec5db
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ameukam The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@ameukam: PR needs rebase. 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. |
will be replaced by containerd/containerd#7038. |
@ameukam: Closed this PR. In response to this:
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. |
Related:
The Kubernetes project is moving away from k8s.gcr.io to registry.k8s.io
registy.k8s.io is currently redirecting to k8s.gcr.io. Each time
minikube is started using containerd as a runtime, the container images
from k8s.gcr.io will be pulled through registry.k8s.io.
Annonce: https://groups.google.com/g/kubernetes-sig-testing/c/U7b_im9vRrM/m/7qywJeUTBQAJ
Signed-off-by: Arnaud Meukam [email protected]