flaky-address-68453
12/25/2022, 9:15 PM# k3s server --cluster-init
FATA[0000] starting kubernetes: preparing server: start managed database: listen tcp 127.0.0.1:2380: bind: cannot assign requested address
Seems like most folks hit this issue trying to run in docker, which the resolution is to open the external port. I've tried adding similar settings in qemu to forward the port to the host, but that has not improved anything. It seems lightly weird to me that I'd need to expose ports to just run a single instance, but I'm not well versed in any of this tech, so eh.
I'm not sure what next to try or where to look for other logs for more information. I've tried increasing the log output, but that did not add any information thus far.Tom Kerr <tomk148@gmail.com>
3:07 PM (8 minutes ago)
to me
# k3s server --cluster-init
INFO[0000] Starting k3s v1.26.0+k3s1 (AlpineLinux)
INFO[0000] Managed etcd cluster initializing
INFO[0000] Starting etcd for new cluster
{"level":"info","ts":"2022-12-25T21:05:34.612Z","caller":"embed/etcd.go:124","msg":"configuring peer listeners","listen-peer-urls":["<https://10.0.2.15:2380>","<https://127.0.0.1:2380>"]}
{"level":"info","ts":"2022-12-25T21:05:34.614Z","caller":"embed/etcd.go:482","msg":"starting with peer TLS","tls-info":"cert = /var/lib/rancher/k3s/server/tls/etcd/peer-server-client.crt, key = /var/lib/rancher/k3s/server/tls/etcd/peer-server-client.ke}
{"level":"info","ts":"2022-12-25T21:05:34.619Z","caller":"embed/etcd.go:371","msg":"closing etcd server","name":"localhost-638b94b2","data-dir":"/var/lib/rancher/k3s/server/db/etcd","advertise-peer-urls":["<https://10.0.2.15:2380>"],"advertise-client-url}
{"level":"info","ts":"2022-12-25T21:05:34.622Z","caller":"embed/etcd.go:373","msg":"closed etcd server","name":"localhost-638b94b2","data-dir":"/var/lib/rancher/k3s/server/db/etcd","advertise-peer-urls":["<https://10.0.2.15:2380>"],"advertise-client-urls}
INFO[0000] certificate CN=k3s,O=k3s signed by CN=k3s-server-ca@1672002325: notBefore=2022-12-25 21:05:25 +0000 UTC notAfter=2023-12-25 21:05:34 +0000 UTC
WARN[0000] dynamiclistener 0.0.0.0:6443: no cached certificate available for preload - deferring certificate load until storage initialization or first client request
FATA[0000] starting kubernetes: preparing server: start managed database: listen tcp 127.0.0.1:2380: bind: cannot assign requested address
creamy-pencil-82913
12/26/2022, 2:18 AMDo you somehow not have an ipv4 loopback address configured!?listen tcp 127.0.0.1:2380: bind: cannot assign requested address
flaky-address-68453
12/26/2022, 3:01 AMWaiting for control-plane node localhost startup: nodes "localhost" not found