Welcome to the Linux Foundation Forum!

Why am I having this error when installing Cilium in Lab 3.1 q20?

gosikhena
gosikhena Posts: 1
edited March 24 in LFS258 Class Forum

student@cp:~$ kubectl apply -f /home/student/LFS258/SOLUTIONS/s_03/cilium-cni.yaml
error: error validating "/home/student/LFS258/SOLUTIONS/s_03/cilium-cni.yaml": error validating data: failed to download openapi: Get "https://k8scp:6443/openapi/v2?timeout=32s": dial tcp 10.128.0.3:6443: i/o timeout; if you choose to ignore these errors, turn validation off with --validate=false

Answers

  • chrispokorni
    chrispokorni Posts: 2,598

    Hi @gosikhena,

    Are you performing the lab exercise in the hosted lab environment?

    It seems you may have used an incorrect IP address in your configuration.

    Regards,
    -Chris

  • muslehh
    muslehh Posts: 1
    edited April 18

    I get the same error, although I cross checked the IP address is correct

  • chrispokorni
    chrispokorni Posts: 2,598

    Hi @muslehh,

    I attempted to run this exercise several times and could not reproduce the issue reported above. I ensured the hosts file was populated with the 10.244.x.x host IP to resolve cp host name and k8scp alias.
    I also ensured that the kubeadm-config.yaml remained unchanged, but that it was set with the 192.168.0.0/16 IP range. I also ensured that my cilium-cni.yaml manifest was populated with cluster-pool-ipv4-cidr: "192.168.0.0/16", while not making any changes to the file itself.

    The current setup requires you to only make minimal changes to the hosts file on step 16, with all other manifests correctly pre-configured, to be used as provided.

    Please run through this lab exercise again, and inform us if the unexpected behavior persists. Perhaps provide validation checkpoints (screenshots or simple copy/paste) - just capture the IP entries - so we can validate that the system configuration is correctly applied.

    Remember to press the SHIFT key while selecting text in the terminal with your mouse cursor - this will SELECT and COPY the text at the same time.

    Regards,
    -Chris

Categories

Upcoming Training