[root@kubernetes-master01 pki]# systemctl daemon-reload
[root@kubernetes-master01 pki]# systemctl enable --now etcd
Job for etcd.service failed because a timeout was exceeded. See "systemctl status etcd.service" and "journalctl -xe" for details.

[root@kubernetes-master01 pki]# systemctl status etcd.service
● etcd.service - Etcd Service
   Loaded: loaded (/usr/lib/systemd/system/etcd.service; enabled; vendor preset: disabled)
   Active: activating (start) since Mon 2023-01-02 22:17:34 CST; 25s ago
     Docs: https://coreos.com/etcd/docs/latest/
 Main PID: 8601 (etcd)
    Tasks: 11
   Memory: 22.4M
   CGroup: /system.slice/etcd.service
           └─8601 /usr/local/bin/etcd --config-file=/etc/etcd/etcd.config.yml

Jan 02 22:17:58 kubernetes-master01 etcd[8601]: {"level":"info","ts":"2023-01-02T22:17:58.010+0800","logger":"raft","caller":"etcdserver/zap_raft.go:77","...term 16"}
Jan 02 22:17:58 kubernetes-master01 etcd[8601]: {"level":"info","ts":"2023-01-02T22:17:58.010+0800","logger":"raft","caller":"etcdserver/zap_raft.go:77","...term 16"}
Jan 02 22:17:58 kubernetes-master01 etcd[8601]: {"level":"info","ts":"2023-01-02T22:17:58.010+0800","logger":"raft","caller":"etcdserver/zap_raft.go:77","...term 16"}
Jan 02 22:17:58 kubernetes-master01 etcd[8601]: {"level":"info","ts":"2023-01-02T22:17:58.010+0800","logger":"raft","caller":"etcdserver/zap_raft.go:77","...term 16"}
Jan 02 22:17:58 kubernetes-master01 etcd[8601]: {"level":"info","ts":"2023-01-02T22:17:58.010+0800","logger":"raft","caller":"etcdserver/zap_raft.go:77","...term 16"}
Jan 02 22:17:59 kubernetes-master01 etcd[8601]: {"level":"info","ts":"2023-01-02T22:17:59.509+0800","logger":"raft","caller":"etcdserver/zap_raft.go:77","...term 16"}
Jan 02 22:17:59 kubernetes-master01 etcd[8601]: {"level":"info","ts":"2023-01-02T22:17:59.509+0800","logger":"raft","caller":"etcdserver/zap_raft.go:77","...term 16"}
Jan 02 22:17:59 kubernetes-master01 etcd[8601]: {"level":"info","ts":"2023-01-02T22:17:59.509+0800","logger":"raft","caller":"etcdserver/zap_raft.go:77","...term 16"}
Jan 02 22:17:59 kubernetes-master01 etcd[8601]: {"level":"info","ts":"2023-01-02T22:17:59.509+0800","logger":"raft","caller":"etcdserver/zap_raft.go:77","...term 16"}
Jan 02 22:17:59 kubernetes-master01 etcd[8601]: {"level":"info","ts":"2023-01-02T22:17:59.509+0800","logger":"raft","caller":"etcdserver/zap_raft.go:77","...term 16"}
Hint: Some lines were ellipsized, use -l to show in full.

Jan 02 22:19:04 kubernetes-master01 etcd[8601]: {"level":"info","ts":"2023-01-02T22:19:04.010+0800","logger":"raft","caller":"etcdserver/zap_raft.go:77","msg":"c3c3a0
Jan 02 22:19:04 kubernetes-master01 systemd[1]: etcd.service start operation timed out. Terminating.
Jan 02 22:19:04 kubernetes-master01 systemd[1]: Failed to start Etcd Service.
-- Subject: Unit etcd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit etcd.service has failed.
--
-- The result is failed.
Jan 02 22:19:04 kubernetes-master01 systemd[1]: Unit etcd.service entered failed state.
Jan 02 22:19:04 kubernetes-master01 systemd[1]: etcd.service failed.
Jan 02 22:19:14 kubernetes-master01 systemd[1]: etcd.service holdoff time over, scheduling restart.
Jan 02 22:19:14 kubernetes-master01 systemd[1]: Stopped Etcd Service.
-- Subject: Unit etcd.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit etcd.service has finished shutting down.
Jan 02 22:19:14 kubernetes-master01 systemd[1]: Starting Etcd Service...
-- Subject: Unit etcd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
 

Jan 02 22:14:06 kubernetes-master01 etcd[7279]: {"level":"info","ts":"2023-01-02T22:14:06.264+0800","logger":"raft","caller":"etcdserver/zap_raft.go:77","msg":"c3c3a0

Jan 02 22:14:13 kubernetes-master01 etcd[7279]: {"level":"warn","ts":"2023-01-02T22:14:13.289+0800","caller":"rafthttp/probing_status.go:68","msg":"prober detected un

Jan 02 22:19:14 kubernetes-master01 etcd[9220]: {"level":"info","ts":"2023-01-02T22:19:14.888+0800","caller":"etcdmain/config.go:343","msg":"loaded server configurati
Jan 02 22:19:14 kubernetes-master01 etcd[9220]: {"level":"info","ts":"2023-01-02T22:19:14.888+0800","caller":"etcdmain/etcd.go:73","msg":"Running: ","args":["/usr/loc

Jan 02 22:19:16 kubernetes-master01 etcd[9220]: {"level":"info","ts":"2023-01-02T22:19:16.034+0800","caller":"api/capability.go:75","msg":"enabled capabilities for ve
Jan 02 22:19:16 kubernetes-master01 etcd[9220]: {"level":"info","ts":"2023-01-02T22:19:16.034+0800","caller":"membership/cluster.go:278","msg":"recovered/added member

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐