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...")
 
Line 1: Line 1:
 +
{{lc}}
 +
 +
 
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.
 
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 options]]
  
  
 
{{kubeconfig}}
 
{{kubeconfig}}

Revision as of 11:59, 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 options


kubectl config [ view | get-contexts | current-context | get-clusters | set-context | set-credentials ], ~/.kube/config, kubectl config --help, kubectx, Kubernetes contexts, KUBECONFIG, kubectl --kubeconfig

Advertising: