<p>I now install a k3s on:</p>
<ol>
<li>A centos7 with arm64;</li>
<li>A mysql8.0;</li>
</ol>
<p>I have disabled:
firewall
selinux
swap</p>
<p>I have modified /etc/hosts;</p>
<p>I have installed docker-ce;</p>
<p>I have downloaded:<br></p>
<ol>
<li><a href="https://get.k3s.io" rel="nofollow noreferrer">https://get.k3s.io</a> to install.sh <br></li>
<li>k3s-airgap-images-arm64.tar to the right place &quot;/var/lib/rancher/k3s/agent/images/&quot;<br></li>
<li>chmod +x k3s-arm64 and move to &quot;/usr/local/bin/k3s&quot;.</li>
</ol>
<p>I'm quite sure the mysql connection is ok.Then I use: INSTALL_K3S_SKIP_DOWNLOAD=true INSTALL_K3S_EXEC='server --docker --datastore-endpoint=&quot;mysql://root:root@tcp(172.16.149.139:3306)/k3s&quot;' ./install.sh</p>
<p>But I always got error shows in journalctl:</p>
<pre><code>Nov 19 11:05:52 k3s01 systemd[1]: Starting Lightweight Kubernetes...
Nov 19 11:05:52 k3s01 k3s[16058]: time=&quot;2020-11-19T11:05:52.883415201+08:00&quot; level=info msg=&quot;Starting k3s v1.19.3+k3s3 (0e4fbfef)&quot;
Nov 19 11:05:52 k3s01 k3s[16058]: time=&quot;2020-11-19T11:05:52.884004317+08:00&quot; level=fatal msg=&quot;starting kubernetes: preparing server: creating storage endpoint: building kine: dial tcp\\: unknown network tcp\\&quot;
Nov 19 11:05:52 k3s01 systemd[1]: k3s.service: main process exited, code=exited, status=1/FAILURE
Nov 19 11:05:52 k3s01 systemd[1]: Failed to start Lightweight Kubernetes.
Nov 19 11:05:52 k3s01 systemd[1]: Unit k3s.service entered failed state.
Nov 19 11:05:52 k3s01 systemd[1]: k3s.service failed.
Nov 19 11:05:57 k3s01 systemd[1]: k3s.service holdoff time over, scheduling restart.
Nov 19 11:05:57 k3s01 systemd[1]: Stopped Lightweight Kubernetes.
Nov 19 11:05:57 k3s01 systemd[1]: Starting Lightweight Kubernetes...
Nov 19 11:05:58 k3s01 k3s[16086]: time=&quot;2020-11-19T11:05:58.341115144+08:00&quot; level=info msg=&quot;Starting k3s v1.19.3+k3s3 (0e4fbfef)&quot;
Nov 19 11:05:58 k3s01 k3s[16086]: time=&quot;2020-11-19T11:05:58.345448686+08:00&quot; level=fatal msg=&quot;starting kubernetes: preparing server: creating storage endpoint: building kine: dial tcp\\: unknown network tcp\\&quot;
Nov 19 11:05:58 k3s01 systemd[1]: k3s.service: main process exited, code=exited, status=1/FAILURE
Nov 19 11:05:58 k3s01 systemd[1]: Failed to start Lightweight Kubernetes.
Nov 19 11:05:58 k3s01 systemd[1]: Unit k3s.service entered failed state.
Nov 19 11:05:58 k3s01 systemd[1]: k3s.service failed.
Nov 19 11:06:03 k3s01 systemd[1]: k3s.service holdoff time over, scheduling restart.
Nov 19 11:06:03 k3s01 systemd[1]: Stopped Lightweight Kubernetes.
Nov 19 11:06:03 k3s01 systemd[1]: Starting Lightweight Kubernetes...
Nov 19 11:06:03 k3s01 k3s[16114]: time=&quot;2020-11-19T11:06:03.855567834+08:00&quot; level=info msg=&quot;Starting k3s v1.19.3+k3s3 (0e4fbfef)&quot;
Nov 19 11:06:03 k3s01 k3s[16114]: time=&quot;2020-11-19T11:06:03.856344291+08:00&quot; level=fatal msg=&quot;starting kubernetes: preparing server: creating storage endpoint: building kine: dial tcp\\: unknown network tcp\\&quot;
Nov 19 11:06:03 k3s01 systemd[1]: k3s.service: main process exited, code=exited, status=1/FAILURE
Nov 19 11:06:03 k3s01 systemd[1]: Failed to start Lightweight Kubernetes.
Nov 19 11:06:03 k3s01 systemd[1]: Unit k3s.service entered failed state.
Nov 19 11:06:03 k3s01 systemd[1]: k3s.service failed.
Nov 19 11:06:08 k3s01 systemd[1]: k3s.service holdoff time over, scheduling restart.
Nov 19 11:06:08 k3s01 systemd[1]: Stopped Lightweight Kubernetes.
Nov 19 11:06:08 k3s01 systemd[1]: Starting Lightweight Kubernetes...
Nov 19 11:06:09 k3s01 k3s[16142]: time=&quot;2020-11-19T11:06:09.430387037+08:00&quot; level=info msg=&quot;Starting k3s v1.19.3+k3s3 (0e4fbfef)&quot;
Nov 19 11:06:09 k3s01 k3s[16142]: time=&quot;2020-11-19T11:06:09.431185565+08:00&quot; level=fatal msg=&quot;starting kubernetes: preparing server: creating storage endpoint: building kine: dial tcp\\: unknown network tcp\\&quot;
Nov 19 11:06:09 k3s01 systemd[1]: k3s.service: main process exited, code=exited, status=1/FAILURE
Nov 19 11:06:09 k3s01 systemd[1]: Failed to start Lightweight Kubernetes.
Nov 19 11:06:09 k3s01 systemd[1]: Unit k3s.service entered failed state.
Nov 19 11:06:09 k3s01 systemd[1]: k3s.service failed.
Nov 19 11:06:14 k3s01 systemd[1]: k3s.service holdoff time over, scheduling restart.
Nov 19 11:06:14 k3s01 systemd[1]: Stopped Lightweight Kubernetes.
Nov 19 11:06:14 k3s01 systemd[1]: Starting Lightweight Kubernetes...
Nov 19 11:06:14 k3s01 k3s[16193]: time=&quot;2020-11-19T11:06:14.888534204+08:00&quot; level=info msg=&quot;Starting k3s v1.19.3+k3s3 (0e4fbfef)&quot;
Nov 19 11:06:14 k3s01 k3s[16193]: time=&quot;2020-11-19T11:06:14.889537923+08:00&quot; level=fatal msg=&quot;starting kubernetes: preparing server: creating storage endpoint: building kine: dial tcp\\: unknown network tcp\\&quot;
Nov 19 11:06:14 k3s01 systemd[1]: k3s.service: main process exited, code=exited, status=1/FAILURE
Nov 19 11:06:14 k3s01 systemd[1]: Failed to start Lightweight Kubernetes.
Nov 19 11:06:14 k3s01 systemd[1]: Unit k3s.service entered failed state.
Nov 19 11:06:14 k3s01 systemd[1]: k3s.service failed.
Nov 19 11:06:19 k3s01 systemd[1]: k3s.service holdoff time over, scheduling restart.
Nov 19 11:06:19 k3s01 systemd[1]: Stopped Lightweight Kubernetes.
Nov 19 11:06:19 k3s01 systemd[1]: Starting Lightweight Kubernetes...
Nov 19 11:06:20 k3s01 k3s[16221]: time=&quot;2020-11-19T11:06:20.442535396+08:00&quot; level=info msg=&quot;Starting k3s v1.19.3+k3s3 (0e4fbfef)&quot;
Nov 19 11:06:20 k3s01 k3s[16221]: time=&quot;2020-11-19T11:06:20.443421344+08:00&quot; level=fatal msg=&quot;starting kubernetes: preparing server: creating storage endpoint: building kine: dial tcp\\: unknown network tcp\\&quot;
Nov 19 11:06:20 k3s01 systemd[1]: k3s.service: main process exited, code=exited, status=1/FAILURE
Nov 19 11:06:20 k3s01 systemd[1]: Failed to start Lightweight Kubernetes.
Nov 19 11:06:20 k3s01 systemd[1]: Unit k3s.service entered failed state.
Nov 19 11:06:20 k3s01 systemd[1]: k3s.service failed.
Nov 19 11:06:24 k3s01 systemd[1]: Stopped Lightweight Kubernetes.
Nov 19 11:06:24 k3s01 systemd[1]: Starting Lightweight Kubernetes...
Nov 19 11:06:25 k3s01 k3s[16336]: time=&quot;2020-11-19T11:06:25.168513665+08:00&quot; level=info msg=&quot;Starting k3s v1.19.3+k3s3 (0e4fbfef)&quot;
Nov 19 11:06:25 k3s01 k3s[16336]: time=&quot;2020-11-19T11:06:25.168946929+08:00&quot; level=fatal msg=&quot;starting kubernetes: preparing server: creating storage endpoint: building kine: dial tcp\\: unknown network tcp\\&quot;
Nov 19 11:06:25 k3s01 systemd[1]: k3s.service: main process exited, code=exited, status=1/FAILURE
Nov 19 11:06:25 k3s01 systemd[1]: Failed to start Lightweight Kubernetes.
Nov 19 11:06:25 k3s01 systemd[1]: Unit k3s.service entered failed state.
Nov 19 11:06:25 k3s01 systemd[1]: k3s.service failed.
Nov 19 11:06:30 k3s01 systemd[1]: k3s.service holdoff time over, scheduling restart.
Nov 19 11:06:30 k3s01 systemd[1]: Stopped Lightweight Kubernetes.
Nov 19 11:06:30 k3s01 systemd[1]: Starting Lightweight Kubernetes...
Nov 19 11:06:30 k3s01 k3s[16363]: time=&quot;2020-11-19T11:06:30.645875517+08:00&quot; level=info msg=&quot;Starting k3s v1.19.3+k3s3 (0e4fbfef)&quot;
Nov 19 11:06:30 k3s01 k3s[16363]: time=&quot;2020-11-19T11:06:30.649172179+08:00&quot; level=fatal msg=&quot;starting kubernetes: preparing server: creating storage endpoint: building kine: dial tcp\\: unknown network tcp\\&quot;
Nov 19 11:06:30 k3s01 systemd[1]: k3s.service: main process exited, code=exited, status=1/FAILURE
Nov 19 11:06:30 k3s01 systemd[1]: Failed to start Lightweight Kubernetes.
Nov 19 11:06:30 k3s01 systemd[1]: Unit k3s.service entered failed state.
Nov 19 11:06:30 k3s01 systemd[1]: k3s.service failed.

</code></pre>
<p>I really don't know what's going on, need help!!!!!!!!!</p>

W.X
<p>finally , I found that I must use K3S_DATASTORE_ENDPOINT='mysql://xxxxxxx' not INSTALL_K3S_EXEC='xxx  --datastore-endpoint=&quot;mysql://xxxxxx&quot;' to avoid this!But I don't know what's on earth of it</p>
