Skip to content

Instantly share code, notes, and snippets.

@shrinandj
Created September 15, 2020 23:51
Show Gist options
  • Save shrinandj/07ff0e9fc31fcb2233d4ae12abbaa83f to your computer and use it in GitHub Desktop.
Save shrinandj/07ff0e9fc31fcb2233d4ae12abbaa83f to your computer and use it in GitHub Desktop.
How to build Kubelet on OSX
# Based on https://docs.microsoft.com/en-us/virtualization/windowscontainers/kubernetes/compiling-kubernetes-binaries
$ go get -d k8s.io/kubernetes
$ cd $GOPATH/src/k8s.io/kubernetes
$ KUBE_BUILD_PLATFORMS=linux/amd64 build/run.sh make WHAT=cmd/kubelet
# The kubelet binary should be available in the _output directory.
$ file ./_output/dockerized/bin/linux/amd64/kubelet
./_output/dockerized/bin/linux/amd64/kubelet: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, Go BuildID=685tDE6b18t59NTs0Yvu/HaVZXqeIaIeCf2bjNCsn/l-M8UipSPrDcTHDIc19W/70m-t0L12ydwEeqbR2Qc, BuildID[sha1]=bcacb0edf6ee068f1a53aa537550be33386b779b, not stripped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment