Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Listing available pods

Info
titleshell command
kubectl get pods

...

Info
titleshell command

kubectl get pods -l app=nginx --show-labels


Error message indicating missing config file when running kubectl

You might see the following message

 # kubectl version
W0404 15:19:07.071657   17635 loader.go:223] Config not found: /root/.kube/config
error: Missing or incomplete configuration info.  Please point to an existing, complete config file:

  1. Via the command-line flag --kubeconfig
  2. Via the KUBECONFIG environment variable
  3. In your home directory as ~/.kube/config

To view or setup config directly use the 'config' command.

Simply run kubectl --client=true once only and the problem should be fixed