Welcome to the Linux Foundation Forum!

LFS 258 Calico

hello TIM.

some issue when i'm trying to apply calico.

kubernetes@master-node:~$ kubectl apply -f calico.yaml
Unable to connect to the server: dial tcp 192.168.122.217:6443: connect: no route to host
kubernetes@master-node:~$

sometimes everything works perfectly and sometimes nothing works.

thanks for you help

Comments

  • serewicz
    serewicz Posts: 1,000

    Hello,

    From the output it looks like its trying to use 192.168.122.217 as the IP for your master node. If you look back the master should be k8smaster instead as configured in /etc/hosts. As you have missed a step or two you may want to go back and make sure there weren't other mistakes.

    Also the 192.168. network may overlap with the Calico IP pool range. I would change one or the other to something else. Perhaps use 10.x.y.z range for the VM.

    Regards,

Categories

Upcoming Training