Home
Cloud
Big Data
CI
Install
Samples
Java
Ubuntu
Maven
Archive
Kubernetes
|
kubectl api-resources (list supported API resources)
kubectl api-resources
kubectl api-resources: Usage
kubectl api-resources: Options
kubectl api-resources: Supported Resources
kubectl api-resources: Examples
kubectl api-resources
Print the supported API resources.
To list
kubectl api-resources
options, type:
kubectl api-resources --help
To print the list of
kubectl
global command-line options (applies to all commands), type:
kubectl options
kubectl api-resources: Usage
Usage:
kubectl api-resources [flags] [options]
kubectl api-resources: Options
-o, --output='': Output format. One of: wide|name. --sort-by='': If non-empty, sort nodes list using specified field. The field can be either 'name' or 'kind'. --namespaced=true: If false, non-namespaced resources will be returned, otherwise returning namespaced resources by default. --api-group='': Limit to resources in the specified API group. --no-headers=false: When using the default or custom-column output format, don't print headers (default print headers). --cached=false: Use the cached list of resources if available. --verbs=[]: Limit to resources that support the specified verbs.
kubectl api-resources: Supported Resources
List namespaced resources:
$ kubectl api-resources --namespaced=true
NAME KIND SHORTNAMES APIGROUP configmaps ConfigMap cm secrets Secret persistentvolumeclaims PersistentVolumeClaim pvc pods Pod po daemonsets DaemonSet ds apps deployments Deployment deploy apps replicasets ReplicaSet rs apps statefulsets StatefulSet sts apps jobs Job batch cronjobs CronJob cj batch services Service svc ingresses Ingress ing extensions,networking.k8s.io events Event ev events.k8s.io bindings Binding endpoints Endpoints ep limitranges LimitRange limits podtemplates PodTemplate replicationcontrollers ReplicationController rc resourcequotas ResourceQuota quota serviceaccounts ServiceAccount sa controllerrevisions ControllerRevision apps localsubjectaccessreviews LocalSubjectAccessReview authorization.k8s.io horizontalpodautoscalers HorizontalPodAutoscaler hpa autoscaling leases Lease coordination.k8s.io endpointslices EndpointSlice discovery.k8s.io networkpolicies NetworkPolicy netpol networking.k8s.io poddisruptionbudgets PodDisruptionBudget pdb policy rolebindings RoleBinding rbac.authorization.k8s.io roles Role rbac.authorization.k8s.io
List non-namespaced resources:
$ kubectl api-resources --namespaced=false
NAME KIND SHORTNAMES APIGROUP nodes Node no storageclasses StorageClass sc storage.k8s.io persistentvolumes PersistentVolume pv namespaces Namespace ns apiservices APIService apiregistration.k8s.io componentstatuses ComponentStatus cs podsecuritypolicies PodSecurityPolicy psp policy ingressclasses IngressClass networking.k8s.io runtimeclasses RuntimeClass node.k8s.io priorityclasses PriorityClass pc scheduling.k8s.io mutatingwebhookconfigurations MutatingWebhookConfiguration admissionregistration.k8s.io validatingwebhookconfigurations ValidatingWebhookConfiguration admissionregistration.k8s.io customresourcedefinitions CustomResourceDefinition crd,crds apiextensions.k8s.io tokenreviews TokenReview authentication.k8s.io selfsubjectaccessreviews SelfSubjectAccessReview authorization.k8s.io selfsubjectrulesreviews SelfSubjectRulesReview authorization.k8s.io subjectaccessreviews SubjectAccessReview authorization.k8s.io certificatesigningrequests CertificateSigningRequestcsr certificates.k8s.io clusterrolebindings ClusterRoleBinding rbac.authorization.k8s.io clusterroles ClusterRole rbac.authorization.k8s.io csidrivers CSIDriver storage.k8s.io csinodes CSINode storage.k8s.io volumeattachments VolumeAttachment storage.k8s.io
© 2010-2022
mti
tek