...
1Modify kubeconfig files using subcommands like "kubectl config set current-context my-context"
2
3The loading order follows these rules:
4
5 1. If the --kubeconfig flag is set, then only that file is loaded. The flag may only be set once and no merging takes
6place.
7 2. If $KUBECONFIG environment variable is set, then it is used a list of paths (normal path delimitting rules for your
8system). These paths are merged. When a value is modified, it is modified in the file that defines the stanza. When a
9value is created, it is created in the first file that exists. If no files in the chain exist, then it creates the last
10file in the list.
11 3. Otherwise, ${HOME}/.kube/config is used and no merging takes place.
12
13Available Commands:
14 current-context Displays the current-context
15 delete-cluster Delete the specified cluster from the kubeconfig
16 delete-context Delete the specified context from the kubeconfig
17 get-clusters Display clusters defined in the kubeconfig
18 get-contexts Describe one or many contexts
19 rename-context Renames a context from the kubeconfig file.
20 set Sets an individual value in a kubeconfig file
21 set-cluster Sets a cluster entry in kubeconfig
22 set-context Sets a context entry in kubeconfig
23 set-credentials Sets a user entry in kubeconfig
24 unset Unsets an individual value in a kubeconfig file
25 use-context Sets the current-context in a kubeconfig file
26 view Display merged kubeconfig settings or a specified kubeconfig file
27
28Usage:
29 kubectl config SUBCOMMAND [options]
30
31Use "kubectl <command> --help" for more information about a given command.
32Use "kubectl options" for a list of global command-line options (applies to all commands).
View as plain text