This is an old revision of the document!


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 the installation will be pretty similiar on the distributions as well.

In a nutshell we have to:

  1. Install the GPG key
  2. Update the local Repo
  3. Install the kubectl
  4. Install the minikube

Let's start the configuration one by one, firstly: Install the GPG key:

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
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

We can check, if the installation has been correct as follows: Eventhough, we need only the kubectl, let's install the whole stack, since we will use it later, for the whole manual implementation:

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) ...

We can verify if the installation is complete by checking the version:

Check the kubectl

root@k8s-master:/etc/apt/sources.list.d# kubectl version --client
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.0", GitCommit:"9e991415386e4cf155a24b1da15becaa390438d8", GitTreeState:"clean", BuildDate:"2020-03-25T14:58:59Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"}
root@k8s-master:/etc/apt/sources.list.d#

Finally, we can install the Minikube as follows:

Install Minikube


  • kubernetes_repo_config.1585575904.txt.gz
  • Last modified: 2020/03/30 13:45
  • by andonovj