Cluster Management
Cluster management refers to querying information about the K8S cluster itself.
Display endpoint information about the master and services in the cluster.
kubectl cluster-infoDisplay the Kubernetes version running on the client and server.
kubectl versionGet the configuration of the cluster.
kubectl config viewGet a list of users.
kubectl config view -o jsonpath='{.users[*].name}'Display the current context.
kubectl config current-contextDisplay a list of contexts.
kubectl config get-contextsSet the default context.
kubectl config use-context <cluster name>List the API resources that are available.
kubectl api-resourcesList the API versions that are available.
kubectl api-versionsLast updated