При создании кластера kubernetes с kubeadm с loadbalancer днс и портом в aws получаю ошибку - PullRequest
0 голосов
/ 10 марта 2020

Я пытаюсь создать кластер высокой доступности, для этого я выполнил следующую процедуру, создал экземпляр Ec2 и добавил его в loadbalancer. Используя этот порт loadbalancer и ip, я дал следующую команду.

sudo kubeadm init --control-plane-endpoint "LOAD_BALANCER_DNS:LOAD_BALANCER_PORT" --upload-certs

но мастер-узел не создан, получая эту ошибку

Unfortunately, an error has occurred:
    timed out waiting for the condition

This error is likely caused by:
    - The kubelet is not running
    - The kubelet is unhealthy due to a misconfiguration of the node in some way (required cgroups disabled)

If you are on a systemd-powered system, you can try to troubleshoot the error with the following commands:
    - 'systemctl status kubelet'
    - 'journalctl -xeu kubelet'

Additionally, a control plane component may have crashed or exited when started by the container runtime.
To troubleshoot, list all containers using your preferred container runtimes CLI, e.g. docker.
Here is one example how you may list all Kubernetes containers running in docker:
    - 'docker ps -a | grep kube | grep -v pause'
    Once you have found the failing container, you can inspect its logs with:
    - 'docker logs CONTAINERID'
error execution phase wait-control-plane: couldn't initialize a Kubernetes cluster
To see the stack trace of this error execute with --v=5 or higher

когда я даю systemctl status kubelet Я получаю ошибку ip not found

Может кто-нибудь, пожалуйста помощь

...