-
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
introduce the "registry" addon #1583
Conversation
Can one of the admins verify this patch? |
@minikube-bot ok to test |
I just realized that the registry replication controller contains some deployment concepts like the updateStrategy. Lemme fix that real quick |
f2e0bf4
to
7d87721
Compare
k, fixed |
Codecov Report
@@ Coverage Diff @@
## master #1583 +/- ##
==========================================
+ Coverage 38.7% 38.78% +0.07%
==========================================
Files 51 51
Lines 2604 2604
==========================================
+ Hits 1008 1010 +2
+ Misses 1418 1417 -1
+ Partials 178 177 -1
Continue to review full report at Codecov.
|
Seems like the kvm tests were flakes/unrelated issues. |
Yeah don't worry about those - we're working on the machines that run the linux and windows integration tests. |
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.
Sorry the review took a few days - a few comments
spec: | ||
replicas: 1 | ||
selector: | ||
kubernetes.io/minikube-addons: registry |
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.
These are ran by the addon-manager so they need the appropriate labels for it
Something like:
https://github.com/kubernetes/minikube/blob/master/deploy/addons/kube-dns/kube-dns-controller.yaml#L24
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.
awesome. I'll update the docs on adding plugins.
@@ -142,6 +142,18 @@ var Addons = map[string]*Addon{ | |||
"ingress-svc.yaml", | |||
"0640"), | |||
}, false, "ingress"), | |||
"registry": NewAddon([]*MemoryAsset{ |
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 addons feature has a dependency on the minikube config
feature, so these need an additional entry in the list here
Then you can enable/disable by minikube addons enable registry
8f1f5a1
to
c5dce93
Compare
Comments addressed. Just a note that I have not been able to locally build minikube over here, so I have not been able to manually test this feature. Apologies for that! |
@bacongobbler why you can't build minikube locally? Maybe its something we can fix or document better. |
Hmm, I'm not sure but things are working now. Things are building locally for me! |
kind: Service | ||
metadata: | ||
labels: | ||
kubernetes.io/minikube-addons: registry |
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 service also needs the addon-manager label addonmanager.kubernetes.io/mode: Reconcile
. Unfortunately the addon-manager will ignore any resource without this label.
@bacongobbler sorry one last label needed but otherwise LGTM! |
c5dce93
to
040a3e5
Compare
Apologies. Thanks for catching that! |
This addon installs a docker registry into the cluster.
040a3e5
to
5e1db75
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.
Thanks! Once the workflow is finalized with draft/helm we should add some more documentation on how to use it
Is there documentation on how to use this yet? |
Not yet @georgecrawford but here's a rough sketch # enable the registry addon
$ minikube addons enable registry
$ minikube start
# use the minikube docker daemon from the host
$ eval $(minikube docker-env)
# get the ip of the registry endpoint
$ kubectl -n kube-system get svc registry -o jsonpath="{.spec.clusterIP}"
10.0.0.240
# build and push to insecure registry
$ docker build -t 10.0.0.240/busybox .
$ docker push 10.0.0.240/busybox |
This addon installs a docker registry into kube-system and exposes it on port 80 through the service.
A separate commit was also added to add 10.0.0.0/24 to the
--insecure-registry
flag by default so that the kubelets can communicate with the registry addon. I tested this functionality via