How to access services (like a database) running on my Docker Host Machine
</a>
</li>
</ul>
@ -561,19 +575,18 @@
</ul>
<h2id="issues-with-zfs">Issues with ZFS<aclass="headerlink"href="#issues-with-zfs"title="Permanent link">¶</a></h2>
<ul>
<li>
<p>k3s currently has <ahref="ttps://github.com/rancher/k3s/issues/66">no support for ZFS</a> and thus, creating multi-server setups (e.g. <code>k3d cluster create multiserver --servers 3</code>) fails, because the initializing server node (server flag <code>--cluster-init</code>) errors out with the following log:
<divclass="highlight"><pre><span></span><code>starting kubernetes: preparing server: start cluster and https: raft_init<spanclass="o">()</span>: io: create I/O capabilities probe file: posix_allocate: operation not supported on socket
</code></pre></div></p>
</li>
<li>
<p>This issue can be worked around by providing docker with a different filesystem (that’s also better for docker-in-docker stuff).</p>
</li>
<li>k3s currently has <ahref="ttps://github.com/rancher/k3s/issues/66">no support for ZFS</a> and thus, creating multi-server setups (e.g. <code>k3d cluster create multiserver --servers 3</code>) fails, because the initializing server node (server flag <code>--cluster-init</code>) errors out with the following log:</li>
</ul>
<divclass="highlight"><pre><span></span><code>starting kubernetes: preparing server: start cluster and https: raft_init<spanclass="o">()</span>: io: create I/O capabilities probe file: posix_allocate: operation not supported on socket
</code></pre></div>
<ul>
<li>This issue can be worked around by providing docker with a different filesystem (that’s also better for docker-in-docker stuff).</li>
<li>A possible solution can be found here: <ahref="https://github.com/rancher/k3s/issues/1688#issuecomment-619570374">https://github.com/rancher/k3s/issues/1688#issuecomment-619570374</a></li>
</ul>
<h2id="pods-evicted-due-to-lack-of-disk-space">Pods evicted due to lack of disk space<aclass="headerlink"href="#pods-evicted-due-to-lack-of-disk-space"title="Permanent link">¶</a></h2>
<ul>
<li>Pods go to evicted state after doing X<ul>
<li>Pods go to evicted state after doing X</li>
<li>Related issues: <ahref="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 <ahref="https://github.com/rancher/k3d/issues/133#issuecomment-549065666">fix/workaround by @zer0def</a>:<ul>
@ -583,8 +596,6 @@
</ul>
</li>
</ul>
</li>
</ul>
<h2id="restarting-a-multi-server-cluster-or-the-initializing-server-node-fails">Restarting a multi-server cluster or the initializing server node fails<aclass="headerlink"href="#restarting-a-multi-server-cluster-or-the-initializing-server-node-fails"title="Permanent link">¶</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>
@ -597,22 +608,22 @@
<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>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>
<h2id="how-to-access-services-like-a-database-running-on-my-docker-host-machine">How to access services (like a database) running on my Docker Host Machine<aclass="headerlink"href="#how-to-access-services-like-a-database-running-on-my-docker-host-machine"title="Permanent link">¶</a></h2>
<ul>
<li>As of version v3.1.0, we’re injecting the <code>host.k3d.internal</code> entry into the k3d containers (k3s nodes) and into the CoreDNS ConfigMap, enabling you to access your host system by referring to it as <code>host.k3d.internal</code></li>
</ul>
@ -622,7 +633,7 @@
<divclass="md-source-date">
<small>
Last update: <spanclass="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">August 13, 2020</span>
Last update: <spanclass="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 6, 2020</span>
--k3s-server-arg <spanclass="c1"># add additional arguments to the k3s server (see https://rancher.com/docs/k3s/latest/en/installation/install-options/server-config/#k3s-server-cli-help)</span>
-s, --servers <spanclass="c1"># specify how many server nodes you want to create</span>
--network <spanclass="c1"># specify a network you want to connect to</span>
--no-hostip <spanclass="c1"># disable the automatic injection of the Host IP as 'host.k3d.internal' into the containers and CoreDN</span>
--no-image-volume <spanclass="c1"># disable the creation of a volume for storing images (used for the 'k3d load image' command)</span>
--no-lb <spanclass="c1"># disable the creation of a LoadBalancer in front of the server nodes</span>
--no-rollback <spanclass="c1"># disable the automatic rollback actions, if anything goes wrong</span>
-p, --port <spanclass="c1"># add some more port mappings</span>
--token <spanclass="c1"># specify a cluster token (default: auto-generated)</span>
--timeout <spanclass="c1"># specify a timeout, after which the cluster creation will be interrupted and changes rolled back</span>
@ -526,7 +529,7 @@
<divclass="md-source-date">
<small>
Last update: <spanclass="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">August 5, 2020</span>
Last update: <spanclass="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 6, 2020</span>