Kubernetes Multi Master setup failed

9/17/2021

I am currently trying to setup multi master setup on enterprise environment.

OS: RHEL 7.5 Kubernetes Versions: 1.22.1

Documentation followed to setup master node & LB nodes: https://www.lisenet.com/2021/install-and-configure-a-multi-master-ha-kubernetes-cluster-with-kubeadm-haproxy-and-keepalived-on-centos-7/

While running kubeadm init command we are getting the error and stopped installation.

Can you please help us to fix the issues

enter code hereI0917 11:05:08.005343   26417 waitcontrolplane.go:89] [wait-control-plane] Waiting for the API server to be healthy

wait-control-plane Waiting for the kubelet to boot up the control plane as static Pods from directory "/etc/kubernetes/manifests". This can take up to 4m0s kubelet-check Initial timeout of 40s passed.

    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.

    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'

couldn't initialize a Kubernetes cluster

-- Sasi Kumar
kubernetes

0 Answers