Welcome to the Linux Foundation Forum!

Lab3.2: kubectl get node is not giving any node info

Hello,
I'm trying to do the lab 3.2 and when I ran the command kubectl get node as a root user, it is giving error, But when I ran the command as a normal user who have sudo access it is not failing and returning the number of nodes in the cluster, Any light on why this is happening ?

Comments

  • Hi @jwalitha,

    That is the expected behavior. In an earlier step the regular (student) user was configured with all security credentials needed by kubectl to interact with the API server. Therefore root is not able to interact with the API server, but the student user is.

    Regards,
    -Chris

Categories

Upcoming Training