Created
September 15, 2020 23:51
-
-
Save shrinandj/07ff0e9fc31fcb2233d4ae12abbaa83f to your computer and use it in GitHub Desktop.
How to build Kubelet on OSX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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