Difference between revisions of "Kubectl --kubeconfig"

From wikieduonline
Jump to navigation Jump to search
Line 9: Line 9:
 
* [[kubectl --help]]
 
* [[kubectl --help]]
 
* [[.bash_aliases]]
 
* [[.bash_aliases]]
* [[kubectl --context]]
+
* <code>[[kubectl --context]]</code>
  
 
== See also ==
 
== See also ==

Revision as of 12:20, 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

See also

Advertising: