May 2018
Intermediate to advanced
554 pages
13h 51m
English
We can still leveragekubectl config to remove configurations in kubeconfig. For cluster sand context, you can delete the neglected one with the subcommands delete-cluster and delete-context. Alternatively, for these three categories, the unset subcommand can complete the deletion:
// delete the customized local context$ kubectl config delete-cluster local-clusterdeleted cluster local-cluster from $HOME/.kube/config// unset the local user// to remove cluster, using property clusters.CLUSTER_NAME; to remove contexts, using property contexts.CONTEXT_NAME$ kubectl config unset users.myself@localProperty "users.myself@local" unset.
Although the effects of the preceding command would apply to the live kubeconfig right away, ...
Read now
Unlock full access