This is an old revision of the document!
Overview
To install kubernetes or minikube in general, which is a taste of Kubernetes. You need to configuration the repository first. So let's configure the Repository, depending on the operation system. In our case we will use Ubuntu, but I will show how to do it in every distribution
Repo Config
Let's start with Ubuntu:
Ubuntu
Download the GPG Key
root@k8s-master:/etc/apt/sources.list.d# curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - OK root@k8s-master:
Then we have to insert the repo details:
Insert Repo Location
root@k8s-master:/etc/apt/apt.conf.d# cat <<EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list > deb https://apt.kubernetes.io/ kubernetes-xenial main > EOF deb https://apt.kubernetes.io/ kubernetes-xenial main root@k8s-master:/etc/apt/apt.conf.d#
That command, will add the: “deb https://apt.kubernetes.io/ kubernetes-xenial main” string in the kuberenetes.list file.
After that, we can update the local repo:
Update the local repo
root@k8s-master:/etc/apt/sources.list.d# apt-get update ***************************** Ign https://download.docker.com xenial/stable Translation-en Ign https://esm.ubuntu.com trusty-infra-updates/main Translation-en Ign https://download.docker.com trusty/stable Translation-en_US Ign https://download.docker.com trusty/stable Translation-en Reading package lists... Done
Finally, we can install the kubectl:
Install the kubectl
root@k8s-master:/etc/apt/sources.list.d# apt-get install -y kubelet kubeadm kubectl kubernetes-cni Reading package lists... Done Building dependency tree Reading state information... Done ***************************** Processing triggers for libc-bin (2.19-0ubuntu6.15) ...