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

In a nutshell we have to:

Install the GPG key

Update the local Repo

Install the kubectl

Install the minikube

Config

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

Install GPG key

Download the GPG Key

Then we have to insert the repo details:

Insert Repo Location

That command, will add the: “deb https://apt.kubernetes.io/ kubernetes-xenial main” string in the kuberenetes.list file.

Update local Repo

After that, we can update the local repo:

Update the local repo

Install Kubectl & Minikube

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

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

Check the kubectl

Install Driver

To install Minikube, we have to install a driver, so either: docker or rockat. I will go with a docker here:

Install Docker

Finally we can install the Minicube and start it as follows:

Manual Minikube Installation

Once that is done, we can start it:

<Code:none|Start Minikube> root@k8s-master:/etc/apt# minikube start –vm-driver=none –apiserver-ips 127.0.0.1 –apiserver-name localhost 😄 minikube v1.9.0 on Ubuntu 18.04 ✨ Using the none driver based on existing profile 🤹 Running on localhost (CPUs=2, Memory=984MB, Disk=9861MB) … ℹ️ OS release is Ubuntu 18.04.4 LTS 🐳 Preparing Kubernetes v1.18.0 on Docker 19.03.6 …

▪ kubelet.resolv-conf=/run/systemd/resolve/resolv.conf
> kubectl.sha256: 65 B / 65 B [--------------------------] 100.00% ? p/s 0s
> kubelet.sha256: 65 B / 65 B [--------------------------] 100.00% ? p/s 0s
> kubeadm.sha256: 65 B / 65 B [--------------------------] 100.00% ? p/s 0s
> kubectl: 41.98 MiB / 41.98 MiB [----------------] 100.00% 5.70 MiB p/s 8s
> kubeadm: 37.96 MiB / 37.96 MiB [----------------] 100.00% 4.68 MiB p/s 8s
> kubelet: 108.01 MiB / 108.01 MiB [-------------] 100.00% 9.19 MiB p/s 12s

🌟 Enabling addons: default-storageclass, storage-provisioner 🤹 Configuring local host environment …

❗ The 'none' driver provides limited isolation and may reduce system security and reliability. ❗ For more information, see: 👉 https://minikube.sigs.k8s.io/docs/reference/drivers/none/

❗ kubectl and minikube configuration will be stored in /root ❗ To use kubectl or minikube commands as your own user, you may need to relocate them. For example, to overwrite your own settings, run:

▪ sudo mv /root/.kube /root/.minikube $HOME
▪ sudo chown -R $USER $HOME/.kube $HOME/.minikube

💡 This can also be done automatically by setting the env var CHANGE_MINIKUBE_NONE_USER=true E0330 14:07:45.754288 18287 kubeadm.go:346] Overriding stale ClientConfig host https://localhost:8443 with https://10.0.2.15:8443 🏄 Done! kubectl is now configured to use “minikube” 💡 For best results, install kubectl: https://kubernetes.io/docs/tasks/tools/install-kubectl/ root@k8s-master:/etc/apt </Code: