错误报告
kubeadm 版本(使用kubeadm version
):v1.13.2
环境:
kubectl version
):v1.13.2uname -a
):4.15.0-43-generic运行kubeadm init
,我得到以下输出。 (命令成功完成。)
...
[mark-control-plane] Marking the node ubuntu-master01 as control-plane by adding the taints [node-role.kubernetes.io/master:NoSchedule]
[bootstrap-token] Using token: tucvyo.5kmgswqycqewn09k
[bootstrap-token] Configuring bootstrap tokens, cluster-info ConfigMap, RBAC Roles
[bootstraptoken] configured RBAC rules to allow Node Bootstrap tokens to post CSRs in order for nodes to get long term certificate credentials
[bootstraptoken] configured RBAC rules to allow the csrapprover controller automatically approve CSRs from a Node Bootstrap Token
[bootstraptoken] configured RBAC rules to allow certificate rotation for all node client certificates in the cluster
[bootstraptoken] creating the "cluster-info" ConfigMap in the "kube-public" namespace
[addons] Applied essential addon: CoreDNS
...
在这个输出中,有两个字符串表示引导令牌的含义,分别是“bootstraptoken”和“bootstrap-token”。
应与同词统一。
有 2 个选项可以修复它。
在 commit kubernetes/ kubernetes@e743f0e4759510cf70dbb55929c2439a85d41f68 处,引入了“bootstrap-token”。 其他代码中还有“bootstraptoken”。
恕我直言,我们应该选择选项1。
只需运行kubeadm init
。
如果我的意见没问题(上面的选项 1),我会修复它。
@atoato88感谢您的报告。
我们应该选择选项 2,因为我们还有其他阶段,如[mark-control-plane]
使用-
来分隔单词。
让我知道你是否可以发送 PR?
thx @atoato88对于这个捕获:火箭:
@neolit123好的,我会用选项 2 修复它。
谢谢!
/生命周期活动
最有用的评论
@atoato88感谢您的报告。
我们应该选择选项 2,因为我们还有其他阶段,如
[mark-control-plane]
使用-
来分隔单词。让我知道你是否可以发送 PR?