Difference between revisions of "Kubectl --kubeconfig"

From wikieduonline
Jump to navigation Jump to search
Line 5: Line 5:
  
  
 +
== Related ==
 
  [[kubectl options]]
 
  [[kubectl options]]
 
  [[kubectl --help]]
 
  [[kubectl --help]]

Revision as of 12:09, 4 March 2024

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

kubectl options
kubectl --help
.bash_aliases

See also

Advertising: