commit a43db3ad1d26c0805a288ce383915900d59b3aed

Author: iwilltry42 <iwilltry42@gmail.com>
Date:   Thu Aug 13 08:00:07 2020 +0200

    docs/faq: second example  for passing additional args to k3s
pull/667/head
iwilltry42 4 years ago
parent 66783cf15d
commit 360379f1f8
  1. 14
      faq/faq/index.html
  2. BIN
      sitemap.xml.gz

@ -659,7 +659,7 @@
</ul>
<h2 id="pods-evicted-due-to-lack-of-disk-space">Pods evicted due to lack of disk space<a class="headerlink" href="#pods-evicted-due-to-lack-of-disk-space" title="Permanent link">&para;</a></h2>
<ul>
<li>Pods go to evicted state after doing X</li>
<li>Pods go to evicted state after doing X<ul>
<li>Related issues: <a href="https://github.com/rancher/k3d/issues/133">#133 - Pods evicted due to <code>NodeHasDiskPressure</code></a> (collection of #119 and #130)</li>
<li>Background: somehow docker runs out of space for the k3d node containers, which triggers a hard eviction in the kubelet</li>
<li>Possible <a href="https://github.com/rancher/k3d/issues/133#issuecomment-549065666">fix/workaround by @zer0def</a>:<ul>
@ -669,6 +669,8 @@
</ul>
</li>
</ul>
</li>
</ul>
<h2 id="restarting-a-multi-server-cluster-or-the-initializing-server-node-fails">Restarting a multi-server cluster or the initializing server node fails<a class="headerlink" href="#restarting-a-multi-server-cluster-or-the-initializing-server-node-fails" title="Permanent link">&para;</a></h2>
<ul>
<li>What you do: You create a cluster with more than one server node and later, you either stop <code>server-0</code> or stop/start the whole cluster</li>
@ -681,19 +683,23 @@
<ul>
<li>The Problem: Passing a feature flag to the Kubernetes API Server running inside k3s.</li>
<li>Example: you want to enable the EphemeralContainers feature flag in Kubernetes</li>
<li>Solution: <code class="highlight">k3d cluster create --k3s-server-arg <span class="s1">&#39;--kube-apiserver-arg=feature-gates=EphemeralContainers=true&#39;</span></code></li>
<li>
<p>Note: Be aware of where the flag require dashes (<code>--</code>) and where not.</p>
<p>Solution: <code class="highlight">k3d cluster create --k3s-server-arg <span class="s1">&#39;--kube-apiserver-arg=feature-gates=EphemeralContainers=true&#39;</span></code></p>
<ul>
<li>Note: Be aware of where the flag require dashes (<code>--</code>) and where not.<ul>
<li>the k3s flag (<code>--kube-apiserver-arg</code>) has the dashes</li>
<li>the kube-apiserver flag <code>feature-gates</code> doesn&rsquo;t have them (k3s adds them internally)</li>
</ul>
</li>
</ul>
</li>
<li>
<p>Second example: <code class="highlight">k3d cluster create k3d-one --k3s-server-arg --cluster-cidr<span class="o">=</span><span class="s2">&quot;10.118.0.0/17&quot;</span> --k3s-server-arg --service-cidr<span class="o">=</span><span class="s2">&quot;10.118.128.0/17&quot;</span> --k3s-server-arg --disable<span class="o">=</span>servicelb --k3s-server-arg --disable<span class="o">=</span>traefik --verbose</code></p>
</li>
<ul>
<li>Note: There are many ways to use the <code>"</code> and <code>'</code> quotes, just be aware, that sometimes shells also try to interpret/interpolate parts of the commands</li>
</ul>
</li>
</ul>

Binary file not shown.
Loading…
Cancel
Save