Welcome to the Linux Foundation Forum!

LFS258-LAB 3.2 - failed to load admin kubeconfig: open /root/.kube/config: no such file or directory

mmondin
mmondin Posts: 2
edited June 2023 in LFS258 Class Forum

Hello,

I am following the course Kubernetes Fundamentals (LFS258). Regarding the LAB 3.2, I took the steps a few times but I get an error when I arrive at the following point:

$ sudo kubeadm token list
failed to load admin kubeconfig: open /root/.kube/config: no such file or directoryTo see the stack trace of this error execute with --v=5 or higher

I followed the steps and redid them a few times. Could you please assist me?

Thank you in advance,

Regards,

Mattia

Best Answer

  • chrispokorni
    chrispokorni Posts: 2,376
    Answer ✓

    Hi @mmondin,

    For step 11, on which of the two nodes are you running the sudo kubeadm token list command? It should successfully work on the cp node (control plane).

    Regards,
    -Chris

Answers

  • mmondin
    mmondin Posts: 2

    Hi Chris,

    I haven't noticed that it went back to the 1st VM. Thanks a lot!

    Regards,

    Mattia

Categories

Upcoming Training