Difference between revisions of "Kubectl --kubeconfig"

From wikieduonline
Jump to navigation Jump to search
(Created page with "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 set...")
 
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
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.
+
{{lc}}
 +
By default, kubectl looks for a file named config in the <code>[[$HOME/.kube]]</code> directory. You can specify other kubeconfig files by setting the <code>[[KUBECONFIG]]</code> environment variable or by setting the --kubeconfig flag.
  
 +
[[kubectl --kubeconfig]] [[~/.kube/]]yourclusterconfig
  
{{kubeconfig}}
+
 
 +
== Related ==
 +
* <code>[[kubectl options]]</code>
 +
* <code>[[kubectl --help]]</code>
 +
* <code>[[.bash_aliases]]</code>
 +
* <code>[[kubectl --context]]</code>
 +
 
 +
== See also ==
 +
* {{kubeconfig}}
 +
 
 +
[[Category:Kubectl]]

Latest revision as of 12:21, 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[edit]

See also[edit]

Advertising: