www

My personal website(s)
Log | Files | Refs

minikube.html (4689B)


      1 <!DOCTYPE html>
      2 <html lang="en">
      3 <head>
      4 <!-- Sep 03, 2024 -->
      5 <meta charset="utf-8" />
      6 <meta name="viewport" content="width=device-width, initial-scale=1" />
      7 <title>minikube</title>
      8 <meta name="author" content="Vincent Demeester" />
      9 <meta name="keywords" content="post" />
     10 <meta name="generator" content="Org Mode" />
     11 <link rel="stylesheet" type="text/css" href="/css/2022.css" />
     12 <link rel="stylesheet" type="text/css" href="/css/syntax.css" />
     13 <link rel='icon' type='image/x-icon' href='/images/favicon.ico'/>
     14 <meta name='viewport' content='width=device-width, initial-scale=1'>
     15 </head>
     16 <body>
     17 <main id="content" class="content">
     18 <header>
     19 <h1 class="title">minikube</h1>
     20 </header><section id="outline-container-h:ac96a1df-968e-4cac-b8fe-60b7bf747917" class="outline-2">
     21 <h2 id="h:ac96a1df-968e-4cac-b8fe-60b7bf747917">Alternative container runtimes</h2>
     22 <div class="outline-text-2" id="text-h:ac96a1df-968e-4cac-b8fe-60b7bf747917">
     23 <div class="org-src-container">
     24 <pre class="src src-sh">minikube start <span class="org-sh-escaped-newline">\</span>
     25     --network-plugin=cni <span class="org-sh-escaped-newline">\</span>
     26     --container-runtime=containerd <span class="org-sh-escaped-newline">\</span>
     27     --bootstrapper=kubeadm
     28 <span class="org-comment-delimiter"># </span><span class="org-comment">or &#8230;</span>
     29 minikube start <span class="org-sh-escaped-newline">\</span>
     30   --network-plugin=cni <span class="org-sh-escaped-newline">\</span>
     31     --extra-config=kubelet.container-runtime=remote <span class="org-sh-escaped-newline">\</span>
     32     --extra-config=kubelet.container-runtime-endpoint=unix:///run/containerd/containerd.sock <span class="org-sh-escaped-newline">\</span>
     33     --extra-config=kubelet.image-service-endpoint=unix:///run/containerd/containerd.sock <span class="org-sh-escaped-newline">\</span>
     34     --bootstrapper=kubeadm
     35 </pre>
     36 </div>
     37 
     38 <div class="org-src-container">
     39 <pre class="src src-sh">minikube start <span class="org-sh-escaped-newline">\</span>
     40     --network-plugin=cni <span class="org-sh-escaped-newline">\</span>
     41     --container-runtime=cri-o <span class="org-sh-escaped-newline">\</span>
     42     --bootstrapper=kubeadm
     43 <span class="org-comment-delimiter"># </span><span class="org-comment">or &#8230;</span>
     44 minikube start <span class="org-sh-escaped-newline">\</span>
     45     --network-plugin=cni <span class="org-sh-escaped-newline">\</span>
     46     --extra-config=kubelet.container-runtime=remote <span class="org-sh-escaped-newline">\</span>
     47     --extra-config=kubelet.container-runtime-endpoint=/var/run/crio.sock <span class="org-sh-escaped-newline">\</span>
     48     --extra-config=kubelet.image-service-endpoint=/var/run/crio.sock <span class="org-sh-escaped-newline">\</span>
     49     --bootstrapper=kubeadm
     50 </pre>
     51 </div>
     52 </div>
     53 </section>
     54 <section id="outline-container-h:84b224cb-6da0-48b3-a4f7-ea3cfd0d62ec" class="outline-2">
     55 <h2 id="h:84b224cb-6da0-48b3-a4f7-ea3cfd0d62ec">Cache some images</h2>
     56 <div class="outline-text-2" id="text-h:84b224cb-6da0-48b3-a4f7-ea3cfd0d62ec">
     57 <p>
     58 Depending on your workflow with <code>minikube</code>, you may re-create a VM from time to time (or
     59 quite a lot). In this case, you may want to speed the process up a bit.
     60 </p>
     61 
     62 <p>
     63 First, you need a recent <code>minikube</code> version, a.k.a. <code>v0.29.0</code> at least — adding image to
     64 cache with <code>v0.28.1</code> is bugged and doesn&rsquo;t work.
     65 </p>
     66 
     67 <p>
     68 Then, it&rsquo;s pretty simple and it works even if a minikube VM doesn&rsquo;t work — in that case
     69 images will be loaded when doing a <code>minikube start</code>.
     70 </p>
     71 
     72 <div class="org-src-container">
     73 <pre class="src src-sh">minikube cache add docker.io/library/ubuntu:18.04
     74 <span class="org-comment-delimiter"># </span><span class="org-comment">[&#8230;]</span>
     75 minikube cache add docker.io/prom/statsd-export:v0.6.0
     76 </pre>
     77 </div>
     78 
     79 <p>
     80 There is some shortcomings still, as <span class="underline">for now</span>, it&rsquo;s not possible to download digest image.
     81 </p>
     82 </div>
     83 </section>
     84 </main>
     85 <footer id="postamble" class="status">
     86 <footer>
     87      <small><a href="/" rel="history">Index</a> • <a href="/sitemap.html">Sitemap</a> • <a href="https://dl.sbr.pm/">Files</a></small><br/>
     88      <small class='questions'>Questions, comments ? Please use my <a href="https://lists.sr.ht/~vdemeester/public-inbox">public inbox</a> by sending a plain-text email to <a href="mailto:~vdemeester/public-inbox@lists.sr.ht">~vdemeester/public-inbox@lists.sr.ht</a>.</small><br/>
     89      <small class='copyright'>
     90       Content and design by Vincent Demeester
     91       (<a rel='licence' href='http://creativecommons.org/licenses/by-nc-sa/3.0/'>Some rights reserved</a>)
     92     </small><br />
     93 </footer>
     94 </footer>
     95 </body>
     96 </html>