このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
06_virtualization:05_container:15_kubernetes_error [2022/04/20 03:50] – matsui | 06_virtualization:05_container:15_kubernetes_error [2022/05/24 06:29] (現在) – [対応] matsui | ||
---|---|---|---|
行 46: | 行 46: | ||
rm / | rm / | ||
systemctl restart containerd | systemctl restart containerd | ||
+ | kubeadm reset | ||
行 127: | 行 128: | ||
こんなログが出ている場合。 | こんなログが出ている場合。 | ||
- | VIPが起動してないと思われる。 | + | これは「--control-plane-endpoint」を指定している場合に出るエラーで、VIPが起動してないと思われる。 |
+ | |||
+ | VIPがないと、対象のcontrol-plane-endpointでマスターホストに接続できないからnot foundで出るよう。 | ||
一度下記などで、VIPを付けて試してみる。 | 一度下記などで、VIPを付けて試してみる。 | ||
ip addr add [VIP] dev [Eth] | ip addr add [VIP] dev [Eth] | ||
+ | |||
+ | ※VIPだけ先に用意していおいて、後からipvsadmなどでVIP用意すれば良いと思う。 | ||
< | < | ||
行 137: | 行 142: | ||
Apr 19 22:58:16 g-master02 kubelet[20595]: | Apr 19 22:58:16 g-master02 kubelet[20595]: | ||
</ | </ | ||
+ | |||
+ | ===== failure loading certificate for CA: couldn' | ||
+ | |||
+ | < | ||
+ | W0421 22: | ||
+ | error execution phase preflight: | ||
+ | One or more conditions for hosting a new control plane instance is not satisfied. | ||
+ | |||
+ | [failure loading certificate for CA: couldn' | ||
+ | |||
+ | Please ensure that: | ||
+ | * The cluster has a stable controlPlaneEndpoint address. | ||
+ | * The certificates that must be shared among control plane instances are provided. | ||
+ | |||
+ | |||
+ | To see the stack trace of this error execute with --v=5 or higher | ||
+ | </ | ||
+ | |||
+ | ==== 対応 ==== | ||
+ | |||
+ | kubernetes controllerをjoinする時に出るエラー | ||
+ | |||
+ | |||
+ | [[06_virtualization: | ||
+ | #Master Join token再作成|Master Join token再作成]]をしれあげれば、joinできる。 | ||