Kubectl config: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
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]]:


kubectl config view
<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

rename-context