Kubectl config: Difference between revisions
Jump to navigation
Jump to search
(→view) |
|||
Line 16: | Line 16: | ||
kubectl config use-context ''new-context-name'' | kubectl config use-context ''new-context-name'' | ||
==view== | ==<tt>view</tt>== | ||
Displays the content of [[.kube config|~/.kube/cofig]]: | Displays the content of [[.kube config|~/.kube/cofig]]: | ||
<syntaxhighlight lang='bash'> | |||
kubectl config view | |||
</syntaxhighlight> | |||
==<tt>rename-context</tt>== |
Revision as of 04:07, 10 April 2021
Internal
Overview
current-context
Displays the current context:
kubectl config current-context
use-context
Sets the current context:
kubectl config use-context new-context-name
view
Displays the content of ~/.kube/cofig:
kubectl config view