-
Notifications
You must be signed in to change notification settings - Fork 778
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
feature request: Standard way for microk8s to communicate about a local registry #1173
Comments
I also filed this feature request here kubernetes-sigs/kind#1543 and here k3d-io/k3d#234, and would love other ideas on places I should post about this |
Just to keep you all in the loop, sig-cluster-lifecycle has suggested I open a KEP for this to kick the tires more on the proposal. But I also recognize that microk8s falls slightly outside the KEP process. Are the microk8s maintainers ok with that? |
Hi @nicks Thank you for the suggestion and apologies for the late response. I am +1 to the idea of formalizing on the registry use. I see your proposal this is under discussion. As soon as we have something concrete we can test and ship we will gladly do so. Here is some info that you might find useful during your investigation. The registry add-on is enabled with Let me know if there is anything else we can do to assist you. Thank you. [1] https://github.com/ubuntu/microk8s/blob/master/microk8s-resources/actions/registry.yaml |
Thanks! That's helpful info. I'm hopeful this will be minimal engineering work to add, most of the work is driving consensus. KEP PR: kubernetes/enhancements#1757 |
Hi @ktsakalozos ! I'm doing a last call for any major objections or things I overlooked before we merge the initial spec kubernetes/enhancements#1757 If you're OK with this proposal, a thumbs-up on the PR would be a help a lot! Thanks! |
Looks good @nicks. You have my +1 on the PR. |
The KEP has been marked implementable! I suspect it will be straightforward to implement, and I think I understand the microk8s internals well enough to send a PR if that would help, but it might take me a little while to get to it. |
Many Kubernetes clusters support a local registry, to make pushing images directly to the cluster fast. But every cluster documents it with manual shell scripts:
Because every cluster is slightly different, this makes it hard for tools to automate this work for users.
The big idea
Clusters should use annotations on the
kube-system
namespace to document how to configure a registryDetailed design
I propose 3 new "standard" annotations:
x-k8s.io/registry
: the host of the registry (hostname and port), as seen from outside of the clusterx-k8s.io/registry-from-cluster
: the host of the registry (hostname and port), as seen from inside the clusterx-k8s.io/registry-help
: The URL of documentation where users can read more about how to set a registry up.Tools that would benefit from local registries should read this annotation and display it to the user
What this means for microk8s
All microk8s clusters would have a
registry-help
annotation pointing users to https://microk8s.io/docs/registry-built-inWhen you run
microk8s enable registry
, microk8s would automatically add thex-k8s.io/registry
annotation to nodes in the cluster.Prior Art
This proposal is based on what we've been recommending to people in Tilt, with a lot of success: https://docs.tilt.dev/choosing_clusters.html#custom-clusters
update 5/4 - changed the proposal to use the
kube-system
namespace instead of node annotationsThe text was updated successfully, but these errors were encountered: