How Do You Get the Binaries for kube-proxy, kube-apiserver, kube-controller-manager, and kube-scheduler?

Problem scenario
You want to install kube-proxy, kube-apiserver, kube-controller-manager, and kube-scheduler on a Linux server.  You want to be able to run these commands. How do you do this?

Solution

Prerequisite
This requires the Linux server to have access to the internet.

Procedures
1.  Download the first tar ball.

cd /usr/bin
sudo wget https://github.com/kubernetes/kubernetes/releases/download/v1.8.6/kubernetes.tar.gz
# To get the latest version, go here: https://github.com/kubernetes/kubernetes/releases/tag/v1.8.6

2.  Expand it:  sudo tar -xzvf kubernetes.tar.gz

3.  Run these commands:

sudo find / -name get-kube-binaries.sh
sudo bash <locationfromabove> # replace <locationfromabove> with the absolute path of get-kube-binaries.sh

# respond with "Y" (with no quotes) to the prompt from the above command

4.  Run these commands:
sudo find / -name kubernetes-server-linux-amd64.tar.gz
sudo su -

5.  Change directories to the location found in the first command in step #4.

6.  Run these commands:

tar -xzvf kubernetes-server-linux-amd64.tar.gz
cd kubernetes/server/bin
ls

exit

7.  You are done.  Now you can execute or run these binaries with one of the four commands below:

sudo /usr/bin/kubernetes/server/kubernetes/server/bin/kube-proxy
sudo /usr/bin/kubernetes/server/kubernetes/server/bin/kube-apiserver
sudo /usr/bin/kubernetes/server/kubernetes/server/bin/kube-controller-manager
sudo /usr/bin/kubernetes/server/kubernetes/server/bin/kube-scheduler

Leave a comment

Your email address will not be published. Required fields are marked *