This message was deleted.
# general
a
This message was deleted.
f
Copy code
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
c
Copy code
listen tcp 127.0.0.1:2380: bind: cannot assign requested address
Do you somehow not have an ipv4 loopback address configured!?
I am not sure how you can fail to assign 127.0.0.1
f
facepalm
at first blush that looks to be true, I did not consider that alpine was quite that minimal. thanks for the rubber duck!
Yea, that was the problem. Fixed that and cgroups and now I'm onto other weird things. Now its spinning on this, which I'm guessing is probably a symptom of something else.
Waiting for control-plane node localhost startup: nodes "localhost" not found
seems like that was because cni stuff wasn't setup right
Now I'm seeing errors about resources and eviction so I think that's probably because I didn't give the VM enough ram maybe. Thanks again for help!
288 Views