Latest kubelet binary

926 views
Skip to first unread message

Dhawal Patel

unread,
Oct 26, 2015, 2:44:46 PM10/26/15
to kubernetes-dev
Where can i download the latest version of kubelet binary?
When I download the latest kubernetes.tar.gz (v1.2.0-alpha.2) and look at the makefile for kubelet, it is downloading v0.16 and packaging it in docker image. The latest code on github has lot of fixes and I would like to use the latest version. Please let me know how to get the latest binary.

-Dhawal

Eric Tune

unread,
Oct 26, 2015, 3:19:31 PM10/26/15
to Dhawal Patel, kubernetes-dev

If you are not doing development, then we recommend using the latest released version, v1.0.6.
You should automatically get this version when you create a cluster following one of our getting-started-guides
(http://kubernetes.io/gettingstarted/).  You should not need to download kubernetes.tar.gz directly with those guides, nor need to build an image using the makefile you mentioned.

If that isn't working, please let us know what instructions you are following and where you are stuck.  

The Makefile you mentioned is probably not used any more and you can ignore it.  I filed issue https://github.com/kubernetes/kubernetes/issues/16292 to get rid of this misleading file.


--
You received this message because you are subscribed to the Google Groups "kubernetes-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.
To post to this group, send email to kuberne...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/086a5ea5-add3-4381-9a87-bf8c903e371f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dhawal Patel

unread,
Oct 26, 2015, 3:50:51 PM10/26/15
to kubernetes-dev, dhaw...@gmail.com
I need the latest kubelet to get past issue https://github.com/kubernetes/kubernetes/issues/11011. It is fixed in the latest source code but not yet released.
I'm still playing with Kubernetes and see if it works for our need and not using it in Prod yet.

Dhawal Patel

unread,
Oct 26, 2015, 3:52:04 PM10/26/15
to kubernetes-dev
I'm able to create my own binary using the makefile in the kubernetes.tar.gz (KUBE_BUILD_PLATFORMS=linux/amd64 make WHAT=cmd/kubelet)

Dhawal Patel

unread,
Oct 26, 2015, 5:14:40 PM10/26/15
to kubernetes-dev
FYI, the binary I created using above command fails with below error:

failed to create kubelet: cAdvisor is unsupported in this build


I saw Vish's comment on github which says "cadvisor only works on linux as of now and in-order to build it, CGO needs to be enabled". I tried enabling CGO but get compilation error "ld: unknown option: --build-id=none"

Isaac Hollander McCreery

unread,
Oct 26, 2015, 5:32:10 PM10/26/15
to kubernetes-dev
Hi Dhawal,

Does this answer your question?


It sounds like, from Eric's reply, that while that Makefile references v0.16, that's wrong.  Getting v1.2.0-alpha.2 from here


will get you the files for v1.2.0-alpha.2.  I'm not familiar with the issue you referenced to know if it was solved yet in v1.2.0-alpha.2, though.

Cheers,
Ike


On Monday, October 26, 2015 at 11:44:46 AM UTC-7, Dhawal Patel wrote:

Dhawal Patel

unread,
Oct 26, 2015, 6:32:38 PM10/26/15
to kubernetes-dev
Hi Ike,
I downloaded the kubernetes.tar.gz file from here: https://github.com/kubernetes/kubernetes/releases/tag/v1.2.0-alpha.2
Then I used the makefile in root directory to build the binaries. However, when I run the kubelet binary, I get error: "failed to create kubelet: cAdvisor is unsupported in this build"

-Dhawal

Eric Tune

unread,
Oct 26, 2015, 7:33:57 PM10/26/15
to Dhawal Patel, kubernetes-dev
Are you using the top-level makefile, or 

cluster/images/kubelet/Makefile.  I don't think anyone uses the latter.  If you want to make an image, then

to "make quick-release" from the top-level directory and then grab the binary from _output/release-stage/server/linux-amd64/kubernetes/server/bin/kubelet.


You don't need a docker image for kubelet: it doesn't run under docker.


--
You received this message because you are subscribed to the Google Groups "kubernetes-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.
To post to this group, send email to kuberne...@googlegroups.com.

Dhawal Patel

unread,
Oct 26, 2015, 7:39:32 PM10/26/15
to kubernetes-dev
Sorry, the kubernetes.tar.gz does not have a makefile. I was using the makefile in the github repo. The kubelet binary in the kubernetes.tar.gz is v1.0.6-release-1.0+388061f

Dhawal Patel

unread,
Oct 26, 2015, 7:43:59 PM10/26/15
to kubernetes-dev, dhaw...@gmail.com
Eric, I don't see a makefile in the top-level directory when i unzip kubernetes.tar.gz file from here: https://github.com/kubernetes/kubernetes/releases/tag/v1.2.0-alpha.2

Dhawal Patel

unread,
Oct 27, 2015, 11:58:33 AM10/27/15
to kubernetes-dev, dhaw...@gmail.com
I think i messed up my folders. The kubelet binary in kubernetes.tar.gz (under server folder) is the correct version. Thank you all for your help.
Reply all
Reply to author
Forward
0 new messages