环境信息:
K3s 版本:
1.21.7+k3s1
节点 CPU 架构、操作系统和版本::
centos7.8
集群配置:
3 server+ 3 agent
问题描述:
手动的方式在第一台server节点上部署了k3s,随后用
“K3S_TOKEN=SECRET k3s server --cluster-init” 命令初始化。
期间打印了很多日志,在最后的地方卡住了。
不知道我使用的方法是否正确。
复现步骤:
- 安装 K3s 的命令:
INSTALL_K3S_SKIP_DOWNLOAD=true /root/k3s-install.sh
systemctl stop k3s
K3S_TOKEN=SECRET k3s server --cluster-init
附加上下文/日志:
Trace[2074331897]: [546.873789ms] [546.873789ms] END
I0502 13:11:26.950800 18045 shared_informer.go:247] Caches are synced for resource quota
I0502 13:11:26.950967 18045 shared_informer.go:247] Caches are synced for garbage collector
{“level”:“info”,“ts”:“2022-05-02T13:19:37.464+0800”,“caller”:“mvcc/index.go:189”,“msg”:“compact tree index”,“revision”:1337}
{“level”:“info”,“ts”:“2022-05-02T13:19:37.559+0800”,“caller”:“mvcc/kvstore_compaction.go:56”,“msg”:“finished scheduled compaction”,“compact-revision”:1337,“took”:“90.833076ms”}
{“level”:“info”,“ts”:“2022-05-02T13:24:37.568+0800”,“caller”:“mvcc/index.go:189”,“msg”:“compact tree index”,“revision”:2135}
{“level”:“info”,“ts”:“2022-05-02T13:24:37.634+0800”,“caller”:“mvcc/kvstore_compaction.go:56”,“msg”:“finished scheduled compaction”,“compact-revision”:2135,“took”:“53.82893ms”}
W0502 13:25:18.365044 18045 watcher.go:220] watch chan error: etcdserver: mvcc: required revision has been compacted