sealerio / sealer

Build, Share and Run Both Your Kubernetes Cluster and Distributed Applications (Project under CNCF)
http://sealer.cool
Apache License 2.0
2.06k stars 362 forks source link

Deploying the etcd cluster (3 nodes) in the k8s cluster generated by Sealer reports an error. #2065

Open fi-ecavc opened 1 year ago

fi-ecavc commented 1 year ago

What happen?

ailed","target":"etcd-endpoints://0xc0000c6380/etcd-0.etcd-headless.etcd.svc.cluster.local:3379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = latest balancer error: last connection error: connection error: desc = \"transport: Error while dialing dial tcp 100.92.28.8:3379: connect: connection refused\""} etcd-0.etcd-headless.etcd.svc.cluster.local:3379 is unhealthy: failed to commit proposal: context deadline exceeded Error: unhealthy cluster etcd 13:46:00.30 ERROR ==> Unhealthy endpoint! Warning Unhealthy 8m58s kubelet Readiness probe failed: {"level":"warn","ts":"2023-02-26T13:46:10.304Z","logger":"client","caller":"v3@v3.5.7/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc0000d2700/etcd-0.etcd-headless.etcd.svc.cluster.local:3379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = latest balancer error: last connection error: connection error: desc = \"transport: Error while dialing dial tcp 100.92.28.8:3379: connect: connection refused\""} etcd-0.etcd-headless.etcd.svc.cluster.local:3379 is unhealthy: failed to commit proposal: context deadline exceeded Error: unhealthy cluster etcd 13:46:10.30 ERROR ==> Unhealthy endpoint! Normal Killing 7m48s kubelet Container etcd failed liveness probe, will be restarted Warning Unhealthy 48s (x53 over 8m48s) kubelet (combined from similar events): Readiness probe failed: {"level":"warn","ts":"2023-02-26T13:54:20.317Z","logger":"client","caller":"v3@v3.5.7/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc0004b6a80/etcd-0.etcd-headless.etcd.svc.cluster.local:3379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = latest balancer error: last connection error: connection error: desc = \"transport: Error while dialing dial tcp 100.92.28.8:3379: connect: connection refused\""} etcd-0.etcd-headless.etcd.svc.cluster.local:3379 is unhealthy: failed to commit proposal: context deadline exceeded Error: unhealthy cluster etcd 13:54:20.31 ERROR ==> Unhealthy endpoint!

Relevant log output?

No response

What you expected to happen?

No response

How to reproduce it (as minimally and precisely as possible)?

No response

Anything else we need to know?

No response

What is the version of Sealer you using?

No response

What is your OS environment?

No response

What is the Kernel version?

No response

Other environment you want to tell us?

cubxxw commented 1 year ago
ailed","target":"etcd-endpoints://0xc0000c6380/etcd-0.etcd-headless.etcd.svc.cluster.local:3379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = latest balancer error: last connection error: connection error: desc = "transport: Error while dialing dial tcp 100.92.28.8:3379: connect: connection refused""}
etcd-0.etcd-headless.etcd.svc.cluster.local:3379 is unhealthy: failed to commit proposal: context deadline exceeded
Error: unhealthy cluster
etcd 13:46:00.30 ERROR ==> Unhealthy endpoint!
Warning Unhealthy 8m58s kubelet Readiness probe failed: {"level":"warn","ts":"2023-02-26T13:46:10.304Z","logger":"client","caller":"v3@v3.5.7/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc0000d2700/etcd-0.etcd-headless.etcd.svc.cluster.local:3379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = latest balancer error: last connection error: connection error: desc = "transport: Error while dialing dial tcp 100.92.28.8:3379: connect: connection refused""}
etcd-0.etcd-headless.etcd.svc.cluster.local:3379 is unhealthy: failed to commit proposal: context deadline exceeded
Error: unhealthy cluster
etcd 13:46:10.30 ERROR ==> Unhealthy endpoint!
Normal Killing 7m48s kubelet Container etcd failed liveness probe, will be restarted
Warning Unhealthy 48s (x53 over 8m48s) kubelet (combined from similar events): Readiness probe failed: {"level":"warn","ts":"2023-02-26T13:54:20.317Z","logger":"client","caller":"v3@v3.5.7/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc0004b6a80/etcd-0.etcd-headless.etcd.svc.cluster.local:3379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = latest balancer error: last connection error: connection error: desc = "transport: Error while dialing dial tcp 100.92.28.8:3379: connect: connection refused""}
etcd-0.etcd-headless.etcd.svc.cluster.local:3379 is unhealthy: failed to commit proposal: context deadline exceeded
Error: unhealthy cluster
etcd 13:54:20.31 ERROR ==> Unhealthy endpoint!

Seems to be a problem with your port. Can you provide more context information? @fi-ecavc Check etcd and port occupancy.