Error saying Ports in use when initializing the cluster

0 votes

I'm trying to set up a cluster on my virtual machine with one master and two nodes. I initialize the cluster using the following command:

kubeadm init --apiserver-advertise-address=<ip-address-of-kmaster-vm> --pod-network-cidr=192.168.0.0/16

But I get errors:

Why am I getting so many errors and how do I get rid of them?

    Nov 23, 2018 in Kubernetes by Ali
    • 11,360 points
    708 views

    1 answer to this question.

    0 votes

    You get this error because there already might be another cluster built on that system. execute the following command on master as well as all the nodes.

    kubeadm reset

    and execute the same kubeadm init command again.

    It should work.

    answered Nov 23, 2018 by Hannah
    • 18,570 points

    Related Questions In Kubernetes

    +1 vote
    1 answer
    0 votes
    3 answers

    Error while joining cluster with node

    Hi Kalgi after following above steps it ...READ MORE

    answered Jan 17, 2019 in Others by anonymous
    14,587 views
    +4 votes
    1 answer

    Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

    Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

    answered Apr 12, 2019 in Kubernetes by Kalgi
    • 52,360 points

    reshown Apr 12, 2019 by Kalgi 6,074 views
    0 votes
    1 answer

    Error saying "the program 'curl' is currently not installed"

    Install curl using this command: apt-get update && ...READ MORE

    answered Nov 23, 2018 in Kubernetes by Hannah
    • 18,570 points
    1,597 views
    webinar REGISTER FOR FREE WEBINAR X
    REGISTER NOW
    webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP