Kubectl config

From NovaOrdis Knowledge Base
Revision as of 22:32, 27 November 2019 by Ovidiu (talk | contribs) (→‎Overview)
Jump to navigation Jump to search

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

Creating a Context from Scratch

This procedure is useful if we install kubectl only on a remote client machine and we need it to configure it to connect to a Kubernetes cluster.