{"id":8012,"date":"2021-07-10T12:18:57","date_gmt":"2021-07-10T12:18:57","guid":{"rendered":"https:\/\/linuxways.net\/?p=8012"},"modified":"2021-07-10T12:18:57","modified_gmt":"2021-07-10T12:18:57","slug":"how-to-install-minikube-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-install-minikube-on-ubuntu-20-04\/","title":{"rendered":"How to Install Minikube on Ubuntu 20.04"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>Minikube is an all-in-one Kubernetes cluster that runs on your Linux system. It\u2019s an open-source tool under the CNCF umbrella. The cluster operates inside a virtual machine and includes the container runtime environment that containers could run inside the node.<\/p>\n<p>This is the easiest way to provision a Kubernetes cluster for testing and developing on your local environment.<\/p>\n<p>This article will show you the steps to install Minikube on your Ubuntu 20.04 machine.<\/p>\n<h2>Install pre-enquiries<\/h2>\n<p>Firstly, let\u2019s update the software packages list then upgrade your Ubuntu 20.04 machine by running the following commands:<\/p>\n<pre>$ sudo apt update<\/pre>\n<pre>$ sudo apt upgrade<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1410\" height=\"692\" class=\"wp-image-8013\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-150.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-150.png 1410w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-150-300x147.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-150-1024x503.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-150-768x377.png 768w\" sizes=\"auto, (max-width: 1410px) 100vw, 1410px\" \/><\/p>\n<p>Please make sure that these below packages will be installed.<\/p>\n<pre>$ sudo apt install curl<\/pre>\n<pre>$ sudo apt install apt-transport-https<\/pre>\n<h2>Install the VirtualBox<\/h2>\n<p>In order to set up a single-node Kubernetes cluster with Minikube, you have to create a virtual machine on your Ubuntu machine. You can choose VirtualBox or KVM. In this guide, we use VirtualBox.<\/p>\n<pre>$ sudo apt install virtualbox virtualbox-ext-pack<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1528\" height=\"382\" class=\"wp-image-8014\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-151.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-151.png 1528w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-151-300x75.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-151-1024x256.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-151-768x192.png 768w\" sizes=\"auto, (max-width: 1528px) 100vw, 1528px\" \/><\/p>\n<p>After the installation is completed, let\u2019s move to the next step.<\/p>\n<h2>Install Minikube<\/h2>\n<p>Now, it\u2019s time to download the latest Minikube from the official repository.<\/p>\n<pre>$ wget https:\/\/storage.googleapis.com\/minikube\/releases\/latest\/minikube-linux-amd64<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1530\" height=\"422\" class=\"wp-image-8015\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-152.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-152.png 1530w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-152-300x83.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-152-1024x282.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-152-768x212.png 768w\" sizes=\"auto, (max-width: 1530px) 100vw, 1530px\" \/><\/p>\n<p>The minikube file has just been downloaded, you have to grant the execute permission to it.<\/p>\n<pre>$ chmod +x minikube-linux-amd64<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1478\" height=\"262\" class=\"wp-image-8016\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-153.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-153.png 1478w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-153-300x53.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-153-1024x182.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-153-768x136.png 768w\" sizes=\"auto, (max-width: 1478px) 100vw, 1478px\" \/><\/p>\n<p>Next, move the minikube file to \/usr\/local\/bin directory:<\/p>\n<pre>$ sudo mv minikube-linux-amd64 \/usr\/local\/bin\/minikube<\/pre>\n<p>Checking the minikube version:<\/p>\n<pre>$ minikube version<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1386\" height=\"140\" class=\"wp-image-8017\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-154.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-154.png 1386w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-154-300x30.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-154-1024x103.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-154-768x78.png 768w\" sizes=\"auto, (max-width: 1386px) 100vw, 1386px\" \/><\/p>\n<p>As you can see, the current version of minikube is v1.21.0.<\/p>\n<p>In order to provision the All-In-One Kubernetes cluster, let\u2019s start the minikube by running the following command:<\/p>\n<pre>$ minikube start<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1530\" height=\"656\" class=\"wp-image-8018\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-155.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-155.png 1530w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-155-300x129.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-155-1024x439.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-155-768x329.png 768w\" sizes=\"auto, (max-width: 1530px) 100vw, 1530px\" \/><\/p>\n<p>You\u2019ve just successfully provisioned a Kubernetes cluster on your local machine.<\/p>\n<h2>Manage the Kubernetes cluster<\/h2>\n<p>To interact with the Kubernetes cluster, you have to install the <strong>kubectl <\/strong>tool.<\/p>\n<pre>$ curl -LO https:\/\/storage.googleapis.com\/kubernetes-release\/release\/`curl -s <a href=\"https:\/\/storage.googleapis.com\/kubernetes-release\/release\/stable.txt%60\/bin\/linux\/amd64\/kubectl\">https:\/\/storage.googleapis.com\/kubernetes-release\/release\/stable.txt`\/bin\/linux\/amd64\/kubectl<\/a><\/pre>\n<p>Granting the executing permission:<\/p>\n<pre>$ chmod +x kubectl<\/pre>\n<p>Then, move the kubectl binary to \/usr\/local\/bin<\/p>\n<pre>$ sudo mv kubectl \/usr\/local\/bin<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1534\" height=\"240\" class=\"wp-image-8019\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-156.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-156.png 1534w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-156-300x47.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-156-1024x160.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-156-768x120.png 768w\" sizes=\"auto, (max-width: 1534px) 100vw, 1534px\" \/><\/p>\n<p>Now, you can run some basic commands with <strong>kubectl<\/strong> to interact with your Kubernetes cluster. For examples:<\/p>\n<p>To show the running node:<\/p>\n<pre>$ kubectl get node<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1532\" height=\"114\" class=\"wp-image-8020\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-157.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-157.png 1532w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-157-300x22.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-157-1024x76.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-157-768x57.png 768w\" sizes=\"auto, (max-width: 1532px) 100vw, 1532px\" \/><\/p>\n<p>To get the cluster information:<\/p>\n<pre>$ kubectl cluster-info<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1524\" height=\"180\" class=\"wp-image-8021\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-158.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-158.png 1524w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-158-300x35.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-158-1024x121.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-158-768x91.png 768w\" sizes=\"auto, (max-width: 1524px) 100vw, 1524px\" \/><\/p>\n<h2>Conclusion<\/h2>\n<p>You\u2019ve already go through the details of how to install Minikube on your Ubuntu 20.04 machine. Now, you can use the single-node Kubernetes with minikube to learn one of the most famous containers orchestration tools in the Cloud Native era.<\/p>\n<p>If you have any concerns, please let me know. Thank you for reading.<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction Minikube is an all-in-one Kubernetes cluster that runs on your Linux system. It\u2019s an open-source tool under the CNCF umbrella. The cluster operates inside a virtual machine&hellip;<\/p>","protected":false},"author":1,"featured_media":8248,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[403,100],"class_list":["post-8012","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-minikube","tag-ubuntu-20-04"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/8012","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=8012"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/8012\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/8248"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=8012"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=8012"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=8012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}