{"id":12394,"date":"2020-03-19T02:31:51","date_gmt":"2020-03-19T02:31:51","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=12394"},"modified":"2025-02-01T22:48:55","modified_gmt":"2025-02-01T22:48:55","slug":"minikube-installation-on-ec2","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/minikube-installation-on-ec2\/","title":{"rendered":"Minikube Tutorials: Minikube Installation On EC2"},"content":{"rendered":"\n<p>Kubernets&#8217;s is a demanding technology and needs lots of hands on and through practise to master it. Luckily we have tools to bootstrap single node cluster on kubernete&#8217;s where we can go, practice and get our hands dirty.<\/p>\n\n\n\n<p>WE are going to talk about everyone&#8217;s favourite Minikube, a single node cluster bootstrapping tool, we are going to install minikube on and EC2 instance \ud83d\ude42  Kubernetes + AWS = Fun.<\/p>\n\n\n\n<p>Let&#8217;s start with launching EC2 instance and doing SSH into it, I&#8217;m starting a micro instance <strong><em>having minimum of two 2 cores of CPU<\/em><\/strong> of ubuntu 18+ LTS version for this demo.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Minikube requires minimum of two cores to run as per latest update<\/p>\n<\/blockquote>\n\n\n\n<p>Step 1.  Install Kubeclt command line client for minikube, which is used to interact with kubernete&#8217;s cluster.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">curl -LO https:\/\/storage.googleapis.com\/kubernetes-release\/release\/`curl -s https:\/\/storage.googleapis.com\/kubernetes-release\/release\/stable.txt`\/bin\/linux\/amd64\/kubectl<\/pre>\n\n\n\n<p>Step 2.  change permission of the binaries, and move to user folder.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">chmod +x .\/kubectl\nsudo mv .\/kubectl \/usr\/local\/bin\/kubectl<\/pre>\n\n\n\n<p>Step 3.  Install docker, there are many ways to do it. We will use shell script for this. <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">curl -fsSL https:\/\/get.docker.com -o get-docker.sh<br>sh get-docker.sh<\/pre>\n\n\n\n<p>Step 4.  Install minikube, one can combine the commands into one command with &amp;&amp;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ curl -Lo minikube https:\/\/storage.googleapis.com\/minikube\/releases\/latest\/minikube-linux-amd64\n$ chmod +x minikube\n$ sudo mv minikube \/usr\/local\/bin\/<\/pre>\n\n\n\n<p>Step 5. Become root, for missions.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo su<\/pre>\n\n\n\n<p>Step 6. Start minikube, with no vm args<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">minikube start --vm-driver=none<\/pre>\n\n\n\n<p>Steps 7. Check status.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">minikube status<\/pre>\n\n\n\n<p>Thats all folks !<\/p>\n\n\n\n<p><a href=\"https:\/\/www.linkedin.com\/in\/gaurav-bajpai-fullstack\/\" target=\"_blank\" rel=\"noopener\">Gaurav Bajpai<\/a><\/p>\n\n\n\n<p><strong><em>Note: We are running classroom batches on all of the Devops toolset, feel free to enquire about them ! locations covered Delhi, Hyderabad, Bangalore and Chennai.<\/em><\/strong><\/p>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_46268\"><iframe loading=\"lazy\"  id=\"_ytid_31664\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_46268\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Kubernets&#8217;s is a demanding technology and needs lots of hands on and through practise to master it. Luckily we have tools to bootstrap single node cluster on kubernete&#8217;s where we&#8230; <\/p>\n","protected":false},"author":23,"featured_media":12760,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5633],"tags":[1399,1868,5603,4860,4861],"class_list":["post-12394","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aws","tag-aws-ec2","tag-ec2","tag-gauravbajpai","tag-kubernetes","tag-minikube"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/12394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=12394"}],"version-history":[{"count":5,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/12394\/revisions"}],"predecessor-version":[{"id":32152,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/12394\/revisions\/32152"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/12760"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=12394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=12394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=12394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}