kubectl api-resources --help
Jump to navigation
Jump to search
Print the supported API resources on the server.
Examples:
# Print the supported API resources
kubectl api-resources
# Print the supported API resources with more information
kubectl api-resources -o wide
# Print the supported API resources sorted by a column
kubectl api-resources --sort-by=name
# Print the supported namespaced resources
kubectl api-resources --namespaced=true
# Print the supported non-namespaced resources
kubectl api-resources --namespaced=false
# Print the supported API resources with a specific APIGroup
kubectl api-resources --api-group=rbac.authorization.k8s.io
Options:
--api-group=:
Limit to resources in the specified API group.
--cached=false:
Use the cached list of resources if available.
--categories=[]:
Limit to resources that belong the the specified categories.
--namespaced=true:
If false, non-namespaced resources will be returned, otherwise returning namespaced resources by default.
--no-headers=false:
When using the default or custom-column output format, don't print headers (default print headers).
-o, --output=:
Output format. One of: (wide, name).
--sort-by=:
If non-empty, sort list of resources using specified field. The field can be either 'name' or 'kind'.
--verbs=[]:
Limit to resources that support the specified verbs.
Usage:
kubectl api-resources [flags] [options]
Use "kubectl options" for a list of global command-line options (applies to all commands).
See also[edit]
kubectl api-resources, kubectl api-versions- Kubernetes API, Kubernetes API server, EKS API,
apiVersion:, kubectl api-resources, kubectl api-versions, kind:, Kubernetes API endpoint, 6443, 10250 (kubelet)kube-apiserver, /etc/kubernetes/manifests/kube-apiserver.yaml,valueFrom, /var/log/kube-apiserver.log, /api/v1/, k8s.io, API Priority and Fairness - Kubectl information commands:
cluster-info|view|pods|nodes|services|version|describe | logs
Advertising: