Editing Kubectl config --help
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 6: | Line 6: | ||
The loading order follows these rules: | The loading order follows these rules: | ||
− | 1. If the | + | 1. If the --kubeconfig flag is set, then only that file is loaded. The flag may only be set once and no merging takes place. |
2. If $KUBECONFIG environment variable is set, then it is used as a list of paths (normal path delimiting rules for your system). These paths are | 2. If $KUBECONFIG environment variable is set, then it is used as a list of paths (normal path delimiting rules for your system). These paths are | ||
merged. When a value is modified, it is modified in the file that defines the stanza. When a value is created, it is created in the first file that | merged. When a value is modified, it is modified in the file that defines the stanza. When a value is created, it is created in the first file that | ||
Line 17: | Line 17: | ||
delete-context Delete the specified context from the kubeconfig | delete-context Delete the specified context from the kubeconfig | ||
delete-user Delete the specified user from the kubeconfig | delete-user Delete the specified user from the kubeconfig | ||
− | + | get-clusters Display clusters defined in the kubeconfig | |
− | + | get-contexts Describe one or many contexts | |
get-users Display users defined in the kubeconfig | get-users Display users defined in the kubeconfig | ||
− | + | rename-context Rename a context from the kubeconfig file | |
set Set an individual value in a kubeconfig file | set Set an individual value in a kubeconfig file | ||
set-cluster Set a cluster entry in kubeconfig | set-cluster Set a cluster entry in kubeconfig |
Advertising: