Ошибка при создании кластера MicroK8s: Ошибка подключения. Имя хоста (xx) присоединяющегося узла не преобразуется в IP-адрес «xx». Отказ присоединиться (400)

Я установил microk8s (1.24/стабильная версия) на две машины. IP двух машин: 172.29.99.187, 172.29.99.188. Я использую команду 172.29.99.187:microk8s add-node

Выход:

From the node you wish to join to this cluster, run the following:
microk8s join 172.29.99.187:25000/57a191d07ce8fe360e13f4f1e9026ce8/5be428d4e916

Use the '--worker' flag to join a node as a worker not running the control plane, eg:
microk8s join 172.29.99.187:25000/57a191d07ce8fe360e13f4f1e9026ce8/5be428d4e916 --worker

If the node you are adding is not reachable through the default interface you can use one of the following:
microk8s join 172.29.99.187:25000/57a191d07ce8fe360e13f4f1e9026ce8/5be428d4e916
microk8s join 192.168.192.122:25000/57a191d07ce8fe360e13f4f1e9026ce8/5be428d4e916
microk8s join 172.24.0.1:25000/57a191d07ce8fe360e13f4f1e9026ce8/5be428d4e916
microk8s join 172.30.239.1:25000/57a191d07ce8fe360e13f4f1e9026ce8/5be428d4e916
microk8s join 172.17.0.1:25000/57a191d07ce8fe360e13f4f1e9026ce8/5be428d4e916

Я использую команду 172.29.99.188:

microk8s join 172.29.99.187:25000/57a191d07ce8fe360e13f4f1e9026ce8/5be428d4e916

Выход:

Contacting cluster at 172.29.99.187
Connection failed. The hostname (cxsw) of the joining node does not resolve to the IP "172.29.99.188". Refusing join (400).

кластер микрок8с

1 ответ
1

Я нашел решение на github:https://github.com/canonical/microk8s/issues/2967#issuecomment-1059942384

Отредактируйте /etc/hosts на машине 172.29.99.188, добавьте:

172.29.99.188 cxsw

я Чен

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *