Kubeadm: kubeadminitの「[bootstraptoken]」と「[bootstrap-token]」

作成日 2019年01月23日  ·  4コメント  ·  ソース: kubernetes/kubeadm

これはバグレポートですか、それとも機能リクエストですか?

バグレポート

バージョン

kubeadmバージョンkubeadm version ):v1.13.2

環境

  • Kubernetesバージョンkubectl version ):v1.13.2
  • クラウドプロバイダーまたはハードウェア構成:N / A
  • OS (例:/ etc / os-releaseから):18.04.1LTS(Bionic Beaver)
  • カーネル(例: uname -a ):4.15.0-43-generic
  • その他:N / A

どうしたの?

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つのブートストラップトークンの意味の文字列があります。

あなたは何が起こると思っていましたか?

同じ言葉で統一されるべきです。
それを修正する2つのオプションがあります。

  1. 「[bootstrap-token]」を「[bootstraptoken]」に変更します
  2. 「[bootstraptoken]」を「[bootstrap-token]」に変更します

commit kubernetes / kubernetes @ e743f0e4759510cf70dbb55929c2439a85d41f68で、「ブートストラップトークン」が導入されます。 そして、他のコードには「bootstraptoken」があります。
私見ですが、オプション1を選択する必要があります。

それを(可能な限り最小限かつ正確に)再現する方法は?

kubeadm init実行するだけです。

他に知っておくべきことはありますか?

私の意見が大丈夫なら(上記のオプション1)、私はそれを修正します。

areUX kinbug lifecyclactive prioritbacklog

最も参考になるコメント

@ atoato88レポートありがとう
我々のような他の相持っているので、我々はオプション2に行く必要があります[mark-control-plane]使用している-別の言葉にします。

PRを送れるか教えてください。

全てのコメント4件

@ atoato88レポートありがとう
我々のような他の相持っているので、我々はオプション2に行く必要があります[mark-control-plane]使用している-別の言葉にします。

PRを送れるか教えてください。

このキャッチのthx @ atoato88 :rocket:

@ neolit123 OK、オプション2で修正します。

ありがとう!
/ライフサイクルアクティブ

このページは役に立ちましたか?
0 / 5 - 0 評価