Kubeadm: kubeadm init 中的“[bootstraptoken]”和“[bootstrap-token]”

创建于 2019-01-23  ·  4评论  ·  资料来源: kubernetes/kubeadm

这是错误报告还是功能请求?

错误报告

版本

kubeadm 版本(使用kubeadm version ):v1.13.2

环境:

  • Kubernetes 版本(使用kubectl version ):v1.13.2
  • 云提供商或硬件配置:不适用
  • 操作系统(例如来自 /etc/os-release):18.04.1 LTS(仿生海狸)
  • 内核(例如uname -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 个选项可以修复它。

  1. 将“[bootstrap-token]”更改为“[bootstraptoken]”
  2. 将“[bootstraptoken]”更改为“[bootstrap-token]”

在 commit kubernetes/ kubernetes@e743f0e4759510cf70dbb55929c2439a85d41f68 处,引入了“bootstrap-token”。 其他代码中还有“bootstraptoken”。
恕我直言,我们应该选择选项1。

如何重现它(尽可能少且精确)?

只需运行kubeadm init

还有什么我们需要知道的吗?

如果我的意见没问题(上面的选项 1),我会修复它。

areUX kinbug lifecyclactive prioritbacklog

最有用的评论

@atoato88感谢您的报告。
我们应该选择选项 2,因为我们还有其他阶段,如[mark-control-plane]使用-来分隔单词。

让我知道你是否可以发送 PR?

所有4条评论

@atoato88感谢您的报告。
我们应该选择选项 2,因为我们还有其他阶段,如[mark-control-plane]使用-来分隔单词。

让我知道你是否可以发送 PR?

thx @atoato88对于这个捕获:火箭:

@neolit123好的,我会用选项 2 修复它。

谢谢!
/生命周期活动

此页面是否有帮助?
0 / 5 - 0 等级