kubectl --kubeconfig

From wikieduonline
(Redirected from --kubeconfig)
Jump to navigation Jump to search

By default, kubectl looks for a file named config in the $HOME/.kube directory. You can specify other kubeconfig files by setting the KUBECONFIG environment variable or by setting the --kubeconfig flag.

kubectl --kubeconfig ~/.kube/yourclusterconfig


Related[edit]

See also[edit]

Advertising: