kubectl config
Modify kubeconfig files using subcommands like "kubectl config set current-context my-context"
Subcommands
Name | Description |
---|---|
current-context | Displays the current-context |
delete-cluster | Delete the specified cluster from the kubeconfig |
delete-context | Delete the specified context from the kubeconfig |
get-clusters | Display clusters defined in the kubeconfig |
get-contexts | Displays one or many contexts from the kubeconfig file |
get-users | Display users defined in the kubeconfig |
rename-context | Renames a context from the kubeconfig file |
set | Sets an individual value in a kubeconfig file |
set-cluster | Sets a cluster entry in kubeconfig |
set-context | Sets a context entry in kubeconfig |
set-credentials | Sets a user entry in kubeconfig |
unset | Unsets an individual value in a kubeconfig file |
use-context | Sets the current-context in a kubeconfig file |
view | Display merged kubeconfig settings or a specified kubeconfig file |
Options
Name | Description |
---|---|
--kubeconfig <path> |