Welcome to the Linux Foundation Forum!

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

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:

  1. $ sudo kubeadm token list
  2. 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

  • Posts: 2,451
    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

  • Posts: 2

    Hi Chris,

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

    Regards,

    Mattia

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training