#1587·k3d

[BUG] 执行快速启动后,会出现 kubectl 未处理的错误和连接拒绝错误

作者: xFichtl1创建于 2025年6月20日更新于 2026年6月15日
标签bug

What did you do

I followed the Quick Start https://k3d.io/stable/#quick-start

  • How was the cluster created?
    • k3d cluster create --trace --no-rollback mycluster
    • k3d kubeconfig merge mycluster --kubeconfig-switch-context
  • What did you do afterwards?
    • kubectl cluster-info

What did you expect to happen

A successful output of kubectl cluster info

Screenshots or terminal output

Output of kubectl cluster-info

fichtl@chaos ~> kubectl cluster-info
E0620 19:47:39.061380   29857 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get "https://0.0.0.0:32825/api?timeout=32s": EOF"
E0620 19:47:49.069766   29857 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get "https://0.0.0.0:32825/api?timeout=32s": EOF"
E0620 19:47:59.080248   29857 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get "https://0.0.0.0:32825/api?timeout=32s": EOF"
E0620 19:48:09.090305   29857 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get "https://0.0.0.0:32825/api?timeout=32s": EOF"
E0620 19:48:19.099637   29857 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get "https://0.0.0.0:32825/api?timeout=32s": EOF"
Unable to connect to the server: EOF

Output of Docker logs k3d-mycluster-serverlb:

[2025-06-20T17:42:13+00:00] creating initial nginx config (try 1/3)
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: INFO Backend set to file
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: INFO Starting confd
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: INFO Backend source(s) set to /etc/confd/values.yaml
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: DEBUG Loading template resources from confdir /etc/confd
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: DEBUG Found template: /etc/confd/conf.d/nginx.toml
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: DEBUG Loading template resource from /etc/confd/conf.d/nginx.toml
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: DEBUG Retrieving keys from store
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: DEBUG Key prefix set to /
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: DEBUG Key Map: map[string]string{"/ports/6443.tcp/0":"k3d-mycluster-server-0", "/settings/workerConnections":"1024"}
2025-06-20T17:42:13Z k3d-mycluster-serverlb confd[10]: DEBUG Got the