{"id":2359,"date":"2021-03-18T05:01:00","date_gmt":"2021-03-18T05:01:00","guid":{"rendered":"https:\/\/teza.blog\/?p=2359"},"modified":"2021-06-20T04:35:29","modified_gmt":"2021-06-20T04:35:29","slug":"installing-minikube-on-linux","status":"publish","type":"post","link":"https:\/\/teza.blog\/index.php\/2021\/03\/18\/installing-minikube-on-linux\/","title":{"rendered":"Installing Minikube on Linux"},"content":{"rendered":"\n<p>To put in a simplest way, Minikube is a compact version of Kubernetes. Minikube -&gt; Mini Kubernetes <br>Instead of having Master &#8211; Slave nodes set up in Kubernetes, Minikube will have all components installed in one single node cluster.<br>Due to limitation of your infrastructure and resources or if you just want to trial out your Kubernetes clusters, Minikube is the way to go. <br><br>Minikube will have Kubernetes Features such as &#8211; <br>&#8211; Config Maps, Secrets<br>&#8211; Container Runtime : Docker<br>&#8211; CNI for pod networking <br>&#8211; Ingress <br>&#8211; Dashboard  <br><br>Below is a set up guide for Minikube on MX Linux. <\/p>\n\n\n\n<p>$ uname -a<br>Linux mx 5.10.0-5mx-amd64 #1 SMP Debian 5.10.26-1~mx19+1 (2021-04-01) x86_64 GNU\/Linux<br><br>1. Update Linux <br>Sudo apt update <br><\/p>\n\n\n\n<p>2. Install KVM  ( any kind of Hypervisor, or you can also install on docker) <br>Link on how to install KVM <br>https:\/\/tutorialforlinux.com\/2020\/05\/19\/step-by-step-kvm-mx-linux-19-installation-guide\/4\/<br><br>3. Download and install Minikube (Minikube has Kubectl dependency, so you will need to install kubectl first) <br>Minikube reference : https:\/\/minikube.sigs.k8s.io\/docs\/<br><br>4. Install Kubectl command line <br><a href=\"https:\/\/kubernetes.io\/docs\/tasks\/tools\/\">https:\/\/kubernetes.io\/docs\/tasks\/tools\/<\/a><\/p>\n\n\n\n<p>After all components are installed, you can now start Minikube .. <br>Simply use the command : minikube start <br>or just type in the command line minikube and it will give you the list of available commands. <br><br>To run minikube in hypervisor &#8211; <br>minikube start &#8211;vm-driver=kvm <br>In my case, KVM or any hypervisor you are going to use. <br><br>List of available drivers &#8211; <br>https:\/\/minikube.sigs.k8s.io\/docs\/drivers\/<br><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/minikube.sigs.k8s.io\/docs\/drivers\/docker\/\">Docker<\/a> &#8211; container-based (preferred)<\/li><li><a href=\"https:\/\/minikube.sigs.k8s.io\/docs\/drivers\/kvm2\/\">KVM2<\/a> &#8211; VM-based (preferred)<\/li><li><a href=\"https:\/\/minikube.sigs.k8s.io\/docs\/drivers\/virtualbox\/\">VirtualBox<\/a> &#8211; VM<\/li><li><a href=\"https:\/\/minikube.sigs.k8s.io\/docs\/drivers\/none\/\">None<\/a> &#8211; bare-metal<\/li><li><a href=\"https:\/\/minikube.sigs.k8s.io\/docs\/drivers\/podman\/\">Podman<\/a> &#8211; container (experimental)<\/li><li><a href=\"https:\/\/minikube.sigs.k8s.io\/docs\/drivers\/ssh\/\">SSH<\/a> &#8211; remote ssh<\/li><\/ul>\n\n\n\n<p>Useful commands &#8211; <br>kubectl cluster-info<br>kubectl config view<br>kubectl get nodes<br>kubectl get pod -o wide   to get more information of the pods <br>kubectl version<br>minikube status<br>minikube dashboard &#8211;url    to access Kubernetes dashboard <\/p>\n\n\n\n<p>You will need minikube commands only at the beginning. The rest is the same as using normal kubernetes, you just need to use kubectl command. <br><br>Regards<br><br>Teza<br><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To put in a simplest way, Minikube is a compact version of Kubernetes. Minikube -&gt; Mini Kubernetes Instead of having Master &#8211; Slave nodes set up in Kubernetes, Minikube will have all components installed in one single node cluster.Due to limitation of your infrastructure and resources or if you just want to trial out your &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/teza.blog\/index.php\/2021\/03\/18\/installing-minikube-on-linux\/\" class=\"read-more\">Read More<span class=\"screen-reader-text\"> &#8220;Installing Minikube on Linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85],"tags":[],"class_list":["post-2359","post","type-post","status-publish","format-standard","hentry","category-virtualization"],"_links":{"self":[{"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/posts\/2359","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/comments?post=2359"}],"version-history":[{"count":21,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/posts\/2359\/revisions"}],"predecessor-version":[{"id":2388,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/posts\/2359\/revisions\/2388"}],"wp:attachment":[{"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/media?parent=2359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/categories?post=2359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/tags?post=2359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}