Welcome to the Linux Foundation Forum!

Lab 2.2 - error: no configuration has been provided, try setting KUBERNETES_MASTER environment varia

Options

After successfully connecting the worker node to the kubernetes cluster, I'm getting the following message when running kubectl get nodes. Is this expected? Can someone provide an explanation about what this means?

error: no configuration has been provided, try setting KUBERNETES_MASTER environment variable

Comments

  • serewicz
    serewicz Posts: 1,000
    Options

    It means the kubectl command cannot find ~/.kube/config. If you are on the worker the file is not there. If you are on the master it means you missed the step where you copy the file and change ownership of the file shortly after the kubeadm init command is run.

    Regards,

Categories

Upcoming Training