namespaced api-resources

root@arm:~#kubectl api-resources --namespaced=true
NAME                        SHORTNAMES                                      APIVERSION                       NAMESPACED   KIND
bindings                                                                    v1                               true         Binding
configmaps                  cm                                              v1                               true         ConfigMap
endpoints                   ep                                              v1                               true         Endpoints
events                      ev                                              v1                               true         Event
limitranges                 limits                                          v1                               true         LimitRange
persistentvolumeclaims      pvc                                             v1                               true         PersistentVolumeClaim
pods                        po                                              v1                               true         Pod
podtemplates                                                                v1                               true         PodTemplate
replicationcontrollers      rc                                              v1                               true         ReplicationController
resourcequotas              quota                                           v1                               true         ResourceQuota
secrets                                                                     v1                               true         Secret
serviceaccounts             sa                                              v1                               true         ServiceAccount
services                    svc                                             v1                               true         Service
challenges                                                                  acme.cert-manager.io/v1          true         Challenge
orders                                                                      acme.cert-manager.io/v1          true         Order
controllerrevisions                                                         apps/v1                          true         ControllerRevision
daemonsets                  ds                                              apps/v1                          true         DaemonSet
deployments                 deploy                                          apps/v1                          true         Deployment
replicasets                 rs                                              apps/v1                          true         ReplicaSet
statefulsets                sts                                             apps/v1                          true         StatefulSet
localsubjectaccessreviews                                                   authorization.k8s.io/v1          true         LocalSubjectAccessReview
horizontalpodautoscalers    hpa                                             autoscaling/v2                   true         HorizontalPodAutoscaler
cronjobs                    cj                                              batch/v1                         true         CronJob
jobs                                                                        batch/v1                         true         Job
certificaterequests         cr,crs                                          cert-manager.io/v1               true         CertificateRequest
certificates                cert,certs                                      cert-manager.io/v1               true         Certificate
issuers                                                                     cert-manager.io/v1               true         Issuer
leases                                                                      coordination.k8s.io/v1           true         Lease
networkpolicies                                                             crd.projectcalico.org/v1         true         NetworkPolicy
networksets                                                                 crd.projectcalico.org/v1         true         NetworkSet
endpointslices                                                              discovery.k8s.io/v1              true         EndpointSlice
events                      ev                                              events.k8s.io/v1                 true         Event
kuboardaddonresources       kbar                                            kuboard.cn/v1                    true         KuboardAddonResource
kuboardaddons               kba                                             kuboard.cn/v1                    true         KuboardAddon
pods                                                                        metrics.k8s.io/v1beta1           true         PodMetrics
alertmanagerconfigs                                                         monitoring.coreos.com/v1alpha1   true         AlertmanagerConfig
alertmanagers                                                               monitoring.coreos.com/v1         true         Alertmanager
podmonitors                                                                 monitoring.coreos.com/v1         true         PodMonitor
probes                                                                      monitoring.coreos.com/v1         true         Probe
prometheuses                                                                monitoring.coreos.com/v1         true         Prometheus
prometheusrules                                                             monitoring.coreos.com/v1         true         PrometheusRule
servicemonitors                                                             monitoring.coreos.com/v1         true         ServiceMonitor
thanosrulers                                                                monitoring.coreos.com/v1         true         ThanosRuler
ingresses                   ing                                             networking.k8s.io/v1             true         Ingress
networkpolicies             netpol                                          networking.k8s.io/v1             true         NetworkPolicy
poddisruptionbudgets        pdb                                             policy/v1                        true         PodDisruptionBudget
networkpolicies             cnp,caliconetworkpolicy,caliconetworkpolicies   projectcalico.org/v3             true         NetworkPolicy
networksets                 netsets                                         projectcalico.org/v3             true         NetworkSet
rolebindings                                                                rbac.authorization.k8s.io/v1     true         RoleBinding
roles                                                                       rbac.authorization.k8s.io/v1     true         Role
csistoragecapacities                                                        storage.k8s.io/v1beta1           true         CSIStorageCapacity

cluster api-resources

root@arm:~# kubectl api-resources --namespaced=false
NAME                              SHORTNAMES                             APIVERSION                             NAMESPACED   KIND
componentstatuses                 cs                                     v1                                     false        ComponentStatus
namespaces                        ns                                     v1                                     false        Namespace
nodes                             no                                     v1                                     false        Node
persistentvolumes                 pv                                     v1                                     false        PersistentVolume
mutatingwebhookconfigurations                                            admissionregistration.k8s.io/v1        false        MutatingWebhookConfiguration
validatingwebhookconfigurations                                          admissionregistration.k8s.io/v1        false        ValidatingWebhookConfiguration
customresourcedefinitions         crd,crds                               apiextensions.k8s.io/v1                false        CustomResourceDefinition
apiservices                                                              apiregistration.k8s.io/v1              false        APIService
tokenreviews                                                             authentication.k8s.io/v1               false        TokenReview
selfsubjectaccessreviews                                                 authorization.k8s.io/v1                false        SelfSubjectAccessReview
selfsubjectrulesreviews                                                  authorization.k8s.io/v1                false        SelfSubjectRulesReview
subjectaccessreviews                                                     authorization.k8s.io/v1                false        SubjectAccessReview
clusterissuers                                                           cert-manager.io/v1                     false        ClusterIssuer
certificatesigningrequests        csr                                    certificates.k8s.io/v1                 false        CertificateSigningRequest
bgpconfigurations                                                        crd.projectcalico.org/v1               false        BGPConfiguration
bgppeers                                                                 crd.projectcalico.org/v1               false        BGPPeer
blockaffinities                                                          crd.projectcalico.org/v1               false        BlockAffinity
caliconodestatuses                                                       crd.projectcalico.org/v1               false        CalicoNodeStatus
clusterinformations                                                      crd.projectcalico.org/v1               false        ClusterInformation
felixconfigurations                                                      crd.projectcalico.org/v1               false        FelixConfiguration
globalnetworkpolicies                                                    crd.projectcalico.org/v1               false        GlobalNetworkPolicy
globalnetworksets                                                        crd.projectcalico.org/v1               false        GlobalNetworkSet
hostendpoints                                                            crd.projectcalico.org/v1               false        HostEndpoint
ipamblocks                                                               crd.projectcalico.org/v1               false        IPAMBlock
ipamconfigs                                                              crd.projectcalico.org/v1               false        IPAMConfig
ipamhandles                                                              crd.projectcalico.org/v1               false        IPAMHandle
ippools                                                                  crd.projectcalico.org/v1               false        IPPool
ipreservations                                                           crd.projectcalico.org/v1               false        IPReservation
kubecontrollersconfigurations                                            crd.projectcalico.org/v1               false        KubeControllersConfiguration
flowschemas                                                              flowcontrol.apiserver.k8s.io/v1beta2   false        FlowSchema
prioritylevelconfigurations                                              flowcontrol.apiserver.k8s.io/v1beta2   false        PriorityLevelConfiguration
nodes                                                                    metrics.k8s.io/v1beta1                 false        NodeMetrics
ingressclasses                                                           networking.k8s.io/v1                   false        IngressClass
runtimeclasses                                                           node.k8s.io/v1                         false        RuntimeClass
apiservers                                                               operator.tigera.io/v1                  false        APIServer
imagesets                                                                operator.tigera.io/v1                  false        ImageSet
installations                                                            operator.tigera.io/v1                  false        Installation
tigerastatuses                                                           operator.tigera.io/v1                  false        TigeraStatus
podsecuritypolicies               psp                                    policy/v1beta1                         false        PodSecurityPolicy
bgpconfigurations                 bgpconfig,bgpconfigs                   projectcalico.org/v3                   false        BGPConfiguration
bgppeers                                                                 projectcalico.org/v3                   false        BGPPeer
caliconodestatuses                caliconodestatus                       projectcalico.org/v3                   false        CalicoNodeStatus
clusterinformations               clusterinfo                            projectcalico.org/v3                   false        ClusterInformation
felixconfigurations               felixconfig,felixconfigs               projectcalico.org/v3                   false        FelixConfiguration
globalnetworkpolicies             gnp,cgnp,calicoglobalnetworkpolicies   projectcalico.org/v3                   false        GlobalNetworkPolicy
globalnetworksets                                                        projectcalico.org/v3                   false        GlobalNetworkSet
hostendpoints                     hep,heps                               projectcalico.org/v3                   false        HostEndpoint
ippools                                                                  projectcalico.org/v3                   false        IPPool
ipreservations                                                           projectcalico.org/v3                   false        IPReservation
kubecontrollersconfigurations                                            projectcalico.org/v3                   false        KubeControllersConfiguration
profiles                                                                 projectcalico.org/v3                   false        Profile
clusterrolebindings                                                      rbac.authorization.k8s.io/v1           false        ClusterRoleBinding
clusterroles                                                             rbac.authorization.k8s.io/v1           false        ClusterRole
priorityclasses                   pc                                     scheduling.k8s.io/v1                   false        PriorityClass
csidrivers                                                               storage.k8s.io/v1                      false        CSIDriver
csinodes                                                                 storage.k8s.io/v1                      false        CSINode
storageclasses                    sc                                     storage.k8s.io/v1                      false        StorageClass
volumeattachments                                                        storage.k8s.io/v1                      false        VolumeAttachment

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code