按照教程一步一步下来,边缘节点配置了docker、配置 EdgeMesh并且验证通过、防火墙全关。命令显示后复制到边缘节点终端进行操作,最终显示KubeEdge edgecore已经在运行了,是刷新控制台边缘节点列表仍然是空的。
按照的教程是
https://kubesphere.io/zh/docs/v3.3/installing-on-linux/cluster-operation/add-edge-nodes/
***:~# ./keadm join --kubeedge-version=1.13.0 --cloudcore-ipport=-.-.-.-:30000 --quicport 30001 --certport 30002 --tunnelport 30004 --edgenode-name edgenode-8ufd --edgenode-ip -.-.-.- --token 17cb95eef8d89e94ee138e00bf780acca197faee55c642a0921276895173acc0.eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MDU1MjQzNjh9.drrIjaj1oRO4c66YAPrjAgGj-niAyG9v4KcSQNnvddU --with-edge-taint --runtimetype=docker
I0117 02:16:37.672423 41448 command.go:845] 1. Check KubeEdge edgecore process status
I0117 02:16:37.681719 41448 command.go:845] 2. Check if the management directory is clean
I0117 02:16:37.681834 41448 join.go:110] 3. Create the necessary directories
I0117 02:16:37.683700 41448 join.go:202] 4. Pull Images
Pulling eclipse-mosquitto:1.6.15 ...
Successfully pulled eclipse-mosquitto:1.6.15
Pulling kubeedge/pause:3.6 ...
Successfully pulled kubeedge/pause:3.6
Pulling kubeedge/installation-package:v1.13.0 ...
Successfully pulled kubeedge/installation-package:v1.13.0
I0117 02:17:01.938414 41448 join.go:202] 5. Copy resources from the image to the management directory
I0117 02:17:04.109399 41448 join.go:202] 6. Start the default mqtt service
I0117 02:17:04.747584 41448 join.go:110] 7. Generate systemd service file
I0117 02:17:04.747755 41448 join.go:110] 8. Generate EdgeCore default configuration
I0117 02:17:04.747784 41448 join.go:288] The configuration does not exist or the parsing fails, and the default configuration is generated
I0117 02:17:04.752308 41448 join.go:110] 9. Run EdgeCore daemon
I0117 02:17:05.099028 41448 join.go:470]
I0117 02:17:05.099066 41448 join.go:471] KubeEdge edgecore is running, For logs visit: journalctl -u edgecore.service -xe
到这里我就ctrlC 了,刷新页面,边缘节点列表还是空的。
还有一个问题就是之前两天这个镜像一直拉不起来,但是Nginx镜像能拉起来。这个镜像今天突然能拉起来了。
***:~# journalctl -u edgecore.service -b
-- Logs begin at Thu 2023-10-12 10:42:37 UTC, end at Wed 2024-01-17 02:28:29 UTC. --
Jan 17 02:17:05 ecs-wspn-pub01 systemd[1]: Started edgecore.service.
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: I0117 02:17:05.164590 41977 server.go:103] Version: v1.13.0
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: I0117 02:17:05.170703 41977 server.go:130] Use node IP address from config: 168.11.7.157
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: I0117 02:17:05.170755 41977 sql.go:21] Begin to register twin db model
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: I0117 02:17:05.170925 41977 module.go:52] Module twin registered successfully
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: I0117 02:17:05.179644 41977 module.go:52] Module edged registered successfully
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: I0117 02:17:05.179718 41977 module.go:52] Module websocket registered successfully
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: I0117 02:17:05.179730 41977 module.go:52] Module eventbus registered successfully
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: I0117 02:17:05.179802 41977 metamanager.go:41] Begin to register metamanager db model
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: I0117 02:17:05.179895 41977 module.go:52] Module metamanager registered successfully
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: W0117 02:17:05.179914 41977 module.go:55] Module servicebus is disabled, do not register
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: W0117 02:17:05.179939 41977 module.go:55] Module edgestream is disabled, do not register
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: W0117 02:17:05.179947 41977 module.go:55] Module testManager is disabled, do not register
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: create table `device`
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: -- --------------------------------------------------
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: -- Table Structure for `github.com/kubeedge/kubeedge/edge/pkg/devicetwin/dtclient.Device`
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: -- --------------------------------------------------
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: CREATE TABLE IF NOT EXISTS `device` (
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: `id` varchar(64) NOT NULL PRIMARY KEY,
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: `name` text,
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: `description` text,
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: `state` text,
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: `last_online` text
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: );
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: create table `device_attr`
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: -- --------------------------------------------------
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: -- Table Structure for `github.com/kubeedge/kubeedge/edge/pkg/devicetwin/dtclient.DeviceAttr`
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: -- --------------------------------------------------
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: CREATE TABLE IF NOT EXISTS `device_attr` (
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: `id` integer NOT NULL PRIMARY KEY AUTOINCREMENT,
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: `deviceid` text,
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: `name` text,
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: `description` text,
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: `value` text,
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: `optional` bool,
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: `attr_type` text,
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: `metadata` text
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: );
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: create table `device_twin`
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: -- --------------------------------------------------
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: -- Table Structure for `github.com/kubeedge/kubeedge/edge/pkg/devicetwin/dtclient.DeviceTwin`
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: -- --------------------------------------------------
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: CREATE TABLE IF NOT EXISTS `device_twin` (
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: `id` integer NOT NULL PRIMARY KEY AUTOINCREMENT,
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: `deviceid` text,
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: `name` text,
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: `description` text,
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: `expected` text,
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: `actual` text,
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: `expected_meta` text,
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: `actual_meta` text,
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: `expected_version` text,
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: `actual_version` text,
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: `optional` bool,
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: `attr_type` text,
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: `metadata` text
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: );
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: create table `sub_topics`
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: -- --------------------------------------------------
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: -- Table Structure for `github.com/kubeedge/kubeedge/edge/pkg/eventbus/dao.SubTopics`
Jan 17 02:17:05 ecs-wspn-pub01 edgecore[41977]: -- --------------------------------------------------
请问有什么解决办法吗