Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

K8S的方式部署kusica,6443端口链接异常 #496

Open
hdkoutann opened this issue Feb 8, 2025 · 2 comments
Open

K8S的方式部署kusica,6443端口链接异常 #496

hdkoutann opened this issue Feb 8, 2025 · 2 comments

Comments

@hdkoutann
Copy link
Contributor

Issue Type

Api Usage

Search for existing issues similar to yours

Yes

Kuscia Version

kuscia:0.13.0b0

Link to Relevant Documentation

No response

Question Details

2025-02-08T02:28:05.381398366Z 2025-02-08 10:28:05.381 INFO tls/crypt.go:377 Generate cert with key, subject[alice]
2025-02-08T02:28:05.382919689Z 2025-02-08 10:28:05.382 INFO tls/crypt.go:377 Generate cert with key, subject[alice]
2025-02-08T02:28:05.384244257Z 2025-02-08 10:28:05.384 INFO runtime/permission.go:115 [CapEff]: /proc/self/status capeff=0000000000000400
2025-02-08T02:28:05.384253629Z 2025-02-08 10:28:05.384 INFO start/manager.go:157 module(coredns) no dep so start
2025-02-08T02:28:05.384330798Z 2025-02-08 10:28:05.384 INFO start/manager.go:319 Try to start module coredns
2025-02-08T02:28:05.384343289Z 2025-02-08 10:28:05.384 INFO start/manager.go:326 [Module] coredns is created
2025-02-08T02:28:05.384347338Z 2025-02-08 10:28:05.384 INFO start/manager.go:157 module(nodeexporter) no dep so start
2025-02-08T02:28:05.384349521Z 2025-02-08 10:28:05.384 INFO start/manager.go:319 Try to start module nodeexporter
2025-02-08T02:28:05.384351750Z 2025-02-08 10:28:05.384 INFO start/manager.go:326 [Module] nodeexporter is created
2025-02-08T02:28:05.384365126Z 2025-02-08 10:28:05.384 INFO start/manager.go:169 new created module: nodeexporter
2025-02-08T02:28:05.384510144Z 2025-02-08 10:28:05.384 INFO start/manager.go:169 new created module: coredns
2025-02-08T02:28:05.384521582Z 2025-02-08 10:28:05.384 INFO supervisor/supervisor.go:75 [node_exporter] start and watch subprocess
2025-02-08T02:28:05.384560618Z 2025-02-08 10:28:05.384 INFO supervisor/supervisor.go:101 [node_exporter] try to start new process
2025-02-08T02:28:05.384937850Z .:53
2025-02-08T02:28:05.385082433Z 2025-02-08 10:28:05.385 INFO start/manager.go:179 [Module] coredns is ready now
2025-02-08T02:28:05.385088742Z 2025-02-08 10:28:05.385 INFO start/manager.go:319 Try to start module k3s
2025-02-08T02:28:05.385180017Z 2025-02-08 10:28:05.385 INFO start/manager.go:326 [Module] k3s is created
2025-02-08T02:28:05.385183662Z 2025-02-08 10:28:05.385 INFO start/manager.go:169 new created module: k3s
2025-02-08T02:28:05.580348159Z 2025-02-08 10:28:05.580 WARN readyz/http.go:51 Get ready err:Get "http://127.0.0.1:9100": dial tcp 127.0.0.1:9100: connect: connection refused
2025-02-08T02:28:05.583070450Z 2025-02-08 10:28:05.582 INFO datastore/datastore_endpoint_check.go:89 Datastore endpoint is effective.
2025-02-08T02:28:05.583145471Z 2025-02-08 10:28:05.583 INFO supervisor/supervisor.go:75 [k3s] start and watch subprocess
2025-02-08T02:28:05.583148922Z 2025-02-08 10:28:05.583 INFO supervisor/supervisor.go:101 [k3s] try to start new process
2025-02-08T02:28:05.585841880Z 2025-02-08 10:28:05.585 WARN readyz/http.go:51 Get ready err:Get "http://127.0.0.1:9100": dial tcp 127.0.0.1:9100: connect: connection refused
2025-02-08T02:28:05.685184667Z 2025-02-08 10:28:05.685 WARN readyz/http.go:51 Get ready err:Get "http://127.0.0.1:9100": dial tcp 127.0.0.1:9100: connect: connection refused
2025-02-08T02:28:05.782546537Z ts=2025-02-08T02:28:05.782Z caller=node_exporter.go:192 level=info msg="Starting node_exporter" version="(version=1.7.0, branch=HEAD, revision=7333465abf9efba81876303bb57e6fadb946041b)"
2025-02-08T02:28:05.782557011Z ts=2025-02-08T02:28:05.782Z caller=node_exporter.go:193 level=info msg="Build context" build_context="(go=go1.21.4, platform=linux/amd64, user=root@35918982f6d8, date=20231112-23:53:35, tags=netgo osusergo static_build)"
2025-02-08T02:28:05.880183205Z 2025-02-08 10:28:05.880 WARN readyz/http.go:51 Get ready err:Get "http://127.0.0.1:9100": dial tcp 127.0.0.1:9100: connect: connection refused
2025-02-08T02:28:05.880707986Z ts=2025-02-08T02:28:05.880Z caller=diskstats_common.go:111 level=info collector=diskstats msg="Parsed flag --collector.diskstats.device-exclude" flag=^(ram|loop|fd|(h|s|v|xv)d[a-z]|nvme\d+n\d+p)\d+$
2025-02-08T02:28:05.880835961Z ts=2025-02-08T02:28:05.880Z caller=diskstats_linux.go:265 level=error collector=diskstats msg="Failed to open directory, disabling udev device properties" path=/run/udev/data
2025-02-08T02:28:05.880954653Z ts=2025-02-08T02:28:05.880Z caller=filesystem_common.go:111 level=info collector=filesystem msg="Parsed flag --collector.filesystem.mount-points-exclude" flag=^/(dev|proc|sys|var|run|boot|/lib/docker/.+|var/lib/kubelet/.+)($|/)
2025-02-08T02:28:05.880966499Z ts=2025-02-08T02:28:05.880Z caller=filesystem_common.go:113 level=info collector=filesystem msg="Parsed flag --collector.filesystem.fs-types-exclude" flag=^(autofs|binfmt_misc|bpf|cgroup2?|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|iso9660|mqueue|nsfs|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|selinuxfs|squashfs|sysfs|tracefs|tmpfs)$
2025-02-08T02:28:05.881199391Z ts=2025-02-08T02:28:05.881Z caller=node_exporter.go:110 level=info msg="Enabled collectors"
2025-02-08T02:28:05.881210711Z ts=2025-02-08T02:28:05.881Z caller=node_exporter.go:117 level=info collector=cpu
2025-02-08T02:28:05.881212855Z ts=2025-02-08T02:28:05.881Z caller=node_exporter.go:117 level=info collector=diskstats
2025-02-08T02:28:05.881214497Z ts=2025-02-08T02:28:05.881Z caller=node_exporter.go:117 level=info collector=filefd
2025-02-08T02:28:05.881215935Z ts=2025-02-08T02:28:05.881Z caller=node_exporter.go:117 level=info collector=filesystem
2025-02-08T02:28:05.881217423Z ts=2025-02-08T02:28:05.881Z caller=node_exporter.go:117 level=info collector=loadavg
2025-02-08T02:28:05.881218883Z ts=2025-02-08T02:28:05.881Z caller=node_exporter.go:117 level=info collector=meminfo
2025-02-08T02:28:05.881220172Z ts=2025-02-08T02:28:05.881Z caller=node_exporter.go:117 level=info collector=netdev
2025-02-08T02:28:05.881221502Z ts=2025-02-08T02:28:05.881Z caller=node_exporter.go:117 level=info collector=netstat
2025-02-08T02:28:05.881304344Z ts=2025-02-08T02:28:05.881Z caller=node_exporter.go:117 level=info collector=sockstat
2025-02-08T02:28:05.881621052Z ts=2025-02-08T02:28:05.881Z caller=tls_config.go:274 level=info msg="Listening on" address=[::]:9100
2025-02-08T02:28:05.881634661Z ts=2025-02-08T02:28:05.881Z caller=tls_config.go:277 level=info msg="TLS is disabled." http2=false address=[::]:9100
2025-02-08T02:28:05.885938738Z 2025-02-08 10:28:05.885 INFO start/manager.go:179 [Module] nodeexporter is ready now
2025-02-08T02:28:06.780330307Z 2025-02-08 10:28:06.780 WARN modules/k3s.go:277 file [/home/kuscia/var/k3s/server/tls/server-ca.crt] is not exist. waiting k3s service starting
2025-02-08T02:28:07.584654802Z 2025-02-08 10:28:07.584 WARN modules/k3s.go:277 file [/home/kuscia/var/k3s/server/tls/server-ca.crt] is not exist. waiting k3s service starting
2025-02-08T02:28:08.584567755Z 2025-02-08 10:28:08.584 WARN modules/k3s.go:277 file [/home/kuscia/var/k3s/server/tls/server-ca.crt] is not exist. waiting k3s service starting
2025-02-08T02:28:10.581912790Z 2025-02-08 10:28:10.581 WARN supervisor/supervisor.go:155 Process [k3s][25] exit with error: signal: killed
2025-02-08T02:28:10.583247728Z 2025-02-08 10:28:10.583 INFO supervisor/supervisor.go:101 [k3s] try to start new process
2025-02-08T02:28:10.683885326Z 2025-02-08 10:28:10.683 ERROR modules/k3s.go:266 process [k3s] is not exists
2025-02-08T02:28:11.680106474Z 2025-02-08 10:28:11.679 ERROR modules/k3s.go:326 Get ready err:Get "https://127.0.0.1:6443/readyz": dial tcp 127.0.0.1:6443: connect: connection refused
2025-02-08T02:28:12.584912881Z 2025-02-08 10:28:12.584 ERROR modules/k3s.go:326 Get ready err:Get "https://127.0.0.1:6443/readyz": dial tcp 127.0.0.1:6443: connect: connection refused
2025-02-08T02:28:13.880453688Z 2025-02-08 10:28:13.880 WARN supervisor/supervisor.go:155 Process [k3s][82] exit with error: signal: killed
2025-02-08T02:28:13.881401548Z 2025-02-08 10:28:13.881 INFO supervisor/supervisor.go:101 [k3s] try to start new process
2025-02-08T02:28:14.586235557Z 2025-02-08 10:28:14.586 ERROR modules/k3s.go:326 Get ready err:Get "https://127.0.0.1:6443/readyz": dial tcp 127.0.0.1:6443: connect: connection refused
2025-02-08T02:28:15.584227370Z 2025-02-08 10:28:15.584 ERROR modules/k3s.go:326 Get ready err:Get "https://127.0.0.1:6443/readyz": dial tcp 127.0.0.1:6443: connect: connection refused
2025-02-08T02:28:17.180678471Z 2025-02-08 10:28:17.180 WARN supervisor/supervisor.go:155 Process [k3s][139] exit with error: signal: killed
2025-02-08T02:28:17.181736427Z 2025-02-08 10:28:17.181 INFO supervisor/supervisor.go:101 [k3s] try to start new process
2025-02-08T02:28:17.585461001Z 2025-02-08 10:28:17.585 ERROR modules/k3s.go:326 Get ready err:Get "https://127.0.0.1:6443/readyz": dial tcp 127.0.0.1:6443: connect: connection refused
2025-02-08T02:28:18.680651785Z 2025-02-08 10:28:18.680 ERROR modules/k3s.go:326 Get ready err:Get "https://127.0.0.1:6443/readyz": dial tcp 127.0.0.1:6443: connect: connection refused
2025-02-08T02:28:20.180512597Z 2025-02-08 10:28:20.180 WARN supervisor/supervisor.go:155 Process [k3s][193] exit with error: signal: killed
2025-02-08T02:28:20.180693999Z 2025-02-08 10:28:20.180 WARN supervisor/supervisor.go:110 [k3s] run process failed, detail -> process [k3s][193] only existed 2998 ms, less than 3000 ms, with error: signal: killed
2025-02-08T02:28:20.180704529Z 2025-02-08 10:28:20.180 INFO supervisor/supervisor.go:101 [k3s] try to start new process
2025-02-08T02:28:20.682141416Z 2025-02-08 10:28:20.682 ERROR modules/k3s.go:326 Get ready err:Get "https://127.0.0.1:6443/readyz": dial tcp 127.0.0.1:6443: connect: connection refused
2025-02-08T02:28:21.680824621Z 2025-02-08 10:28:21.680 ERROR modules/k3s.go:326 Get ready err:Get "https://127.0.0.1:6443/readyz": dial tcp 127.0.0.1:6443: connect: connection refused
2025-02-08T02:28:22.680938196Z 2025-02-08 10:28:22.680 ERROR modules/k3s.go:326 Get ready err:Get "https://127.0.0.1:6443/readyz": dial tcp 127.0.0.1:6443: connect: connection refused
2025-02-08T02:28:23.180807420Z 2025-02-08 10:28:23.180 WARN supervisor/supervisor.go:155 Process [k3s][251] exit with error: signal: killed
2025-02-08T02:28:23.181938918Z 2025-02-08 10:28:23.181 INFO supervisor/supervisor.go:101 [k3s] try to start new process
2025-02-08T02:28:23.680275444Z 2025-02-08 10:28:23.680 ERROR modules/k3s.go:326 Get ready err:Get "https://127.0.0.1:6443/readyz": dial tcp 127.0.0.1:6443: connect: connection refused
2025-02-08T02:28:24.584922370Z 2025-02-08 10:28:24.584 ERROR modules/k3s.go:326 Get ready err:Get "https://127.0.0.1:6443/readyz": dial tcp 127.0.0.1:6443: connect: connection refused
2025-02-08T02:28:25.680630859Z 2025-02-08 10:28:25.680 ERROR modules/k3s.go:326 Get ready err:Get "https://127.0.0.1:6443/readyz": dial tcp 127.0.0.1:6443: connect: connection refused
2025-02-08T02:28:26.280459562Z 2025-02-08 10:28:26.280 WARN supervisor/supervisor.go:155 Process [k3s][306] exit with error: signal: killed
2025-02-08T02:28:26.280820950Z 2025-02-08 10:28:26.280 INFO supervisor/supervisor.go:101 [k3s] try to start new process
2025-02-08T02:28:26.585212277Z 2025-02-08 10:28:26.585 ERROR modules/k3s.go:326 Get ready err:Get "https://127.0.0.1:6443/readyz": dial tcp 127.0.0.1:6443: connect: connection refused
2025-02-08T02:28:27.680143505Z 2025-02-08 10:28:27.680 ERROR modules/k3s.go:326 Get ready err:Get "https://127.0.0.1:6443/readyz": dial tcp 127.0.0.1:6443: connect: connection refused
2025-02-08T02:28:28.584064321Z 2025-02-08 10:28:28.583 ERROR modules/k3s.go:326 Get ready err:Get "https://127.0.0.1:6443/readyz": dial tcp 127.0.0.1:6443: connect: connection refused
2025-02-08T02:28:29.181116799Z 2025-02-08 10:28:29.181 WARN supervisor/supervisor.go:155 Process [k3s][367] exit with error: signal: killed
2025-02-08T02:28:29.181912910Z 2025-02-08 10:28:29.181 WARN supervisor/supervisor.go:110 [k3s] run process failed, detail -> process [k3s][367] only existed 2901 ms, less than 3000 ms, with error: signal: killed
2025-02-08T02:28:29.181918663Z 2025-02-08 10:28:29.181 INFO supervisor/supervisor.go:101 [k3s] try to start new process
2025-02-08T02:28:29.585582414Z 2025-02-08 10:28:29.585 ERROR modules/k3s.go:326 Get ready err:Get "https://127.0.0.1:6443/readyz": dial tcp 127.0.0.1:6443: connect: connection refused
2025-02-08T02:28:30.680171559Z 2025-02-08 10:28:30.680 ERROR modules/k3s.go:326 Get ready err:Get "https://127.0.0.1:6443/readyz": dial tcp 127.0.0.1:6443: connect: connection refused
2025-02-08T02:28:31.584447177Z 2025-02-08 10:28:31.584 ERROR modules/k3s.go:326 Get ready err:Get "https://127.0.0.1:6443/readyz": dial tcp 127.0.0.1:6443: connect: connection refused
2025-02-08T02:28:32.180490982Z 2025-02-08 10:28:32.180 WARN supervisor/supervisor.go:155 Process [k3s][424] exit with error: signal: killed
2025-02-08T02:28:32.180709552Z 2025-02-08 10:28:32.180 WARN supervisor/supervisor.go:110 [k3s] run process failed, detail -> process [k3s][424] only existed 2998 ms, less than 3000 ms, with error: signal: killed
2025-02-08T02:28:32.280998747Z 2025-02-08 10:28:32.280 INFO supervisor/supervisor.go:101 [k3s] try to start new process
2025-02-08T02:28:32.585325763Z 2025-02-08 10:28:32.585 ERROR modules/k3s.go:326 Get ready err:Get "https://127.0.0.1:6443/readyz": dial tcp 127.0.0.1:6443: connect: connection refused
2025-02-08T02:28:33.584884297Z 2025-02-08 10:28:33.584 ERROR modules/k3s.go:326 Get ready err:Get "https://127.0.0.1:6443/readyz": dial tcp 127.0.0.1:6443: connect: connection refused
2025-02-08T02:28:34.980911424Z 2025-02-08 10:28:34.980 WARN supervisor/supervisor.go:155 Process [k3s][483] exit with error: signal: killed
2025-02-08T02:28:34.981193479Z 2025-02-08 10:28:34.981 WARN supervisor/supervisor.go:110 [k3s] run process failed, detail -> process [k3s][483] only existed 2700 ms, less than 3000 ms, with error: signal: killed
2025-02-08T02:28:35.081542831Z 2025-02-08 10:28:35.081 INFO supervisor/supervisor.go:101 [k3s] try to start new process
2025-02-08T02:28:35.583659570Z 2025-02-08 10:28:35.583 INFO modules/k3s.go:195 k3s is ready now
2025-02-08T02:28:35.583675019Z 2025-02-08 10:28:35.583 ERROR start/manager.go:176 [Module] k3s wait ready failed with wait k3s ready timeout, so start gracefulExit
2025-02-08T02:28:35.583677226Z 2025-02-08 10:28:35.583 INFO modules/k3s.go:167 close k3s ready chan
2025-02-08T02:28:35.583678948Z 2025-02-08 10:28:35.583 INFO start/manager.go:378 GracefulExit started...
2025-02-08T02:28:35.583708822Z 2025-02-08 10:28:35.583 INFO start/manager.go:371 Current step modules are finished now
2025-02-08T02:28:35.583721318Z 2025-02-08 10:28:35.583 INFO start/manager.go:357 [Module] coredns notified to exit...
2025-02-08T02:28:35.583764053Z 2025-02-08 10:28:35.583 INFO start/manager.go:357 [Module] nodeexporter notified to exit...
2025-02-08T02:28:35.583768182Z 2025-02-08 10:28:35.583 INFO start/manager.go:357 [Module] k3s notified to exit...
2025-02-08T02:28:35.583769898Z 2025-02-08 10:28:35.583 WARN supervisor/supervisor.go:175 Context done, begin to stop process [node_exporter][20]
2025-02-08T02:28:35.583825267Z 2025-02-08 10:28:35.583 WARN supervisor/supervisor.go:175 Context done, begin to stop process [k3s][540]
2025-02-08T02:28:35.583837876Z 2025-02-08 10:28:35.583 INFO start/manager.go:342 [Module] coredns is successful finished
2025-02-08T02:28:35.780090993Z 2025-02-08 10:28:35.779 WARN supervisor/supervisor.go:155 Process [node_exporter][20] exit with error: signal: interrupt
2025-02-08T02:28:35.780108251Z 2025-02-08 10:28:35.780 WARN supervisor/supervisor.go:98 [node_exporter] context had done, no need to wait to restart
2025-02-08T02:28:35.780110594Z 2025-02-08 10:28:35.780 INFO start/manager.go:339 [Module] nodeexporter is finished with err=context had done, no need to wait to restart
2025-02-08T02:28:35.782897526Z 2025-02-08 10:28:35.782 WARN supervisor/supervisor.go:155 Process [k3s][540] exit with error: signal: interrupt
2025-02-08T02:28:35.782905592Z 2025-02-08 10:28:35.782 WARN supervisor/supervisor.go:110 [k3s] run process failed, detail -> process [k3s][540] only existed 701 ms, less than 3000 ms, with error: signal: interrupt
2025-02-08T02:28:35.782907922Z 2025-02-08 10:28:35.782 WARN supervisor/supervisor.go:98 [k3s] context had done, no need to wait to restart
2025-02-08T02:28:35.785214792Z 2025-02-08 10:28:35.785 ERROR modules/k3s.go:517 [k3s] Log content: time="2025-02-08T10:28:31+08:00" level=info msg="Configuring mysql database connection pooling: maxIdleConns=2, maxOpenConns=0, connMaxLifetime=0s"
2025-02-08T02:28:35.785237897Z time="2025-02-08T10:28:31+08:00" level=info msg="Database tables and indexes are up to date"
2025-02-08T02:28:35.785240338Z time="2025-02-08T10:28:31+08:00" level=info msg="Kine available at unix://kine.sock"
2025-02-08T02:28:35.785241944Z time="2025-02-08T10:28:31+08:00" level=info msg="Reconciling bootstrap data between datastore and disk"
2025-02-08T02:28:35.785243551Z time="2025-02-08T10:28:34+08:00" level=warning msg="Webhooks and apiserver aggregation may not function properly without an agent; please set egress-selector-mode to 'cluster' or 'pod'"
2025-02-08T02:28:35.785245200Z time="2025-02-08T10:28:34+08:00" level=info msg="Starting k3s v1.26.11+k3s2 (66be20f1)"
2025-02-08T02:28:35.785246816Z time="2025-02-08T10:28:34+08:00" level=info msg="Configuring mysql database connection pooling: maxIdleConns=2, maxOpenConns=0, connMaxLifetime=0s"
2025-02-08T02:28:35.785248404Z time="2025-02-08T10:28:34+08:00" level=info msg="Database tables and indexes are up to date"
2025-02-08T02:28:35.785250009Z time="2025-02-08T10:28:34+08:00" level=info msg="Kine available at unix://kine.sock"
2025-02-08T02:28:35.785251405Z time="2025-02-08T10:28:34+08:00" level=info msg="Reconciling bootstrap data between datastore and disk"
2025-02-08T02:28:35.785252881Z  [k3s] Log end
2025-02-08T02:28:35.785254240Z 2025-02-08 10:28:35.785 INFO start/manager.go:339 [Module] k3s is finished with err=context had done, no need to wait to restart
2025-02-08T02:28:35.785255884Z 2025-02-08 10:28:35.785 INFO start/manager.go:371 Current step modules are finished now
2025-02-08T02:28:35.785258843Z 2025-02-08 10:28:35.785 INFO start/start.go:125 Kuscia Instance [alice] shut down
@hdkoutann hdkoutann changed the title K8S的方式部署kusica,6446端口链接异常 K8S的方式部署kusica,6443端口链接异常 Feb 8, 2025
@BrainWH
Copy link

BrainWH commented Feb 8, 2025

您可以补充一下相关信息,是在执行哪条命令后报错的

@yushiqie
Copy link
Collaborator

麻烦补充一下 kuscia.yaml 的配置信息

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants