Minikube is a taste of Kubernetes, it is a single pod single master configuration, but it gives you a taste of the Kubernetes. The installation is very simply:

Install Minikube

root@k8s-master:/etc/apt# curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 \
>   && chmod +x minikube
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 52.0M  100 52.0M    0     0  13.2M      0  0:00:03  0:00:03 --:--:-- 13.2M
root@k8s-master:/etc/apt# mkdir -p /usr/local/bin/
root@k8s-master:/etc/apt# install minikube /usr/local/bin/

Once that is done, we can start it:

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
  • k8s_basic_minikube.txt
  • Last modified: 2020/05/01 15:55
  • by andonovj