Created
February 21, 2021 14:05
-
-
Save iamabhishek-dubey/46ea543a2fb9daaecea5d4f17a9244f3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1 id="k8s-minikube">K8s | Minikube</h1> | |
<p>Minikube is a tool that makes it easy to run Kubernetes locally. Minikube runs a single-node Kubernetes cluster inside a Virtual Machine (VM) on your laptop for users looking to try out Kubernetes or develop with it day-to-day.</p> | |
<p>Make sure you have VirtualBox installed. | |
(Download & Install VirtualBox) : <a href="https://www.virtualbox.org/wiki/Downloads">https://www.virtualbox.org/wiki/Downloads</a></p> | |
<h3 id="linux">Linux</h3> | |
<p>Download Minikube:</p> | |
<pre><code class="lang-shell">curl -Lo minikube https:<span class="hljs-regexp">//</span>storage.googleapis.com<span class="hljs-regexp">/minikube/</span>releases<span class="hljs-regexp">/latest/mi</span>nikube-linux-amd64 && chmod +x minikube | |
</code></pre> | |
<p>Install Minikube:</p> | |
<pre><code class="lang-shell">sudo mkdir -p <span class="hljs-regexp">/usr/</span>local<span class="hljs-regexp">/bin/</span> | |
sudo install minikube <span class="hljs-regexp">/usr/</span>local<span class="hljs-regexp">/bin/</span> | |
</code></pre> | |
<p>Confirm Installation by checking minikube version:</p> | |
<pre><code class="lang-shell">minikube <span class="hljs-built_in">version</span> | |
</code></pre> | |
<h3 id="macos">macOS</h3> | |
<p>Download Minikube:</p> | |
<pre><code class="lang-shell">curl -Lo minikube https:<span class="hljs-regexp">//</span>storage.googleapis.com<span class="hljs-regexp">/minikube/</span>releases<span class="hljs-regexp">/latest/mi</span>nikube-darwin-amd64 && chmod +x minikube | |
</code></pre> | |
<p>Install Minikube:</p> | |
<pre><code class="lang-shell">sudo mv minikube /usr/<span class="hljs-keyword">local</span>/bin | |
</code></pre> | |
<p>Confirm Installation by checking minikube version:</p> | |
<pre><code class="lang-shell">minikube <span class="hljs-built_in">version</span> | |
</code></pre> | |
<h4 id="start-k8s-cluster-using-minikube">Start K8s cluster using minikube</h4> | |
<p>Start K8s Cluster:</p> | |
<pre><code class="lang-shell">minikube <span class="hljs-literal">start</span> | |
</code></pre> | |
<p>Once minukube start finished, check the health of the cluster by executing below command:</p> | |
<pre><code class="lang-shell"><span class="hljs-attribute">minikube status</span> | |
</code></pre> | |
<p>To stop minikube:</p> | |
<pre><code class="lang-shell">minikube <span class="hljs-built_in">stop</span> | |
</code></pre> | |
<p>Finally, destroy the k8s cluster:</p> | |
<pre><code class="lang-shell">minikube <span class="hljs-keyword">delete</span> | |
</code></pre> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment