This section sets our default cluster, namespace and user that kubectl will use with its commands.Ĭretae New Context: kubectl config set-context dev -namespace=development -cluster=lithe-cocoa-92103_kubernetes -user=lithe-cocoa-92103_kubernetes In the above command output you can see contexts section. This file also stores authentication information such as username/passwords, certificates or tokens. you can find this same info in $HOME/.kube/KUBECONFIG OR $HOME/.kube/config file. It will give you current context configuration. View Context Configuration master $ kubectl config view It will display the current context which you are using. Kubectl config current-context master $ kubectl config current-context ![]() To know what is the current context or To view the current context use below command
0 Comments
|
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |