Kubectl config: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 9: Line 9:


  kubectl config current-context
  kubectl config current-context
==use-context==
Sets the [[.kube_config#Current_Context|current context]]:
kubectl config use-context ''new-context-name''


==view==
==view==

Revision as of 00:17, 22 August 2019

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