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-info
Display the Kubernetes version running on the client and server.
kubectl version
Get the configuration of the cluster.
kubectl config view
Get a list of users.
kubectl config view -o jsonpath='{.users[*].name}'
Display the current context.
kubectl config current-context
Display a list of contexts.
kubectl config get-contexts
Set the default context.
kubectl config use-context <cluster name>
List the API resources that are available.
kubectl api-resources
List the API versions that are available.
kubectl api-versions
Last updated