-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path5.DownloadTheTools
34 lines (26 loc) · 1.68 KB
/
5.DownloadTheTools
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Here we are going to download the tools required to create the cluster.
1. Install Kubectl binary
Run the following commands
--------------------------------------------------------------------------------------------------------------------
sudo apt-get update && sudo apt-get install -y apt-transport-https
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update
sudo apt-get install -y kubectl
--------------------------------------------------------------------------------------------------------------------
Kubectl is a command line tool for kubenetes that can be used to talk with the kubernetes api server.
It requires to be configured correctly with the K8S api server.
(Don't worry KOPS will take care of the configuration)
Check whether kubectl has been installed correctly
Run kubectl --version
2. Install KOPS binary
Run the following commands
-----------------------------------------------------------------------------------------------------------------------
curl -LO https://github.com/kubernetes/kops/releases/download/$(curl -s https://api.github.com/repos/kubernetes/kops/releases/latest | grep tag_name | cut -d '"' -f 4)/kops-linux-amd64
chmod +x kops-linux-amd64
sudo mv kops-linux-amd64 /usr/local/bin/kops
--------------------------------------------------------------------------------------------------------------------------
Test whether KOPS has been installed correctly.
Run kops version
3. Awesome!!
Finally we have installed KOPS.