常见kind
Deployment
Pod
Service
附件,kind 所有类型
- namespaced=true
test@singlek8s:~$ kubectl api-resources -o wide --namespaced=true
NAME SHORTNAMES APIGROUP NAMESPACED KIND VERBS
bindings true Binding [create]
configmaps cm true ConfigMap [create delete deletecollection get list patch update watch]
endpoints ep true Endpoints [create delete deletecollection get list patch update watch]
events ev true Event [create delete deletecollection get list patch update watch]
limitranges limits true LimitRange [create delete deletecollection get list patch update watch]
persistentvolumeclaims pvc true PersistentVolumeClaim [create delete deletecollection get list patch update watch]
pods po true Pod [create delete deletecollection get list patch update watch]
podtemplates true PodTemplate [create delete deletecollection get list patch update watch]
replicationcontrollers rc true ReplicationController [create delete deletecollection get list patch update watch]
resourcequotas quota true ResourceQuota [create delete deletecollection get list patch update watch]
secrets true Secret [create delete deletecollection get list patch update watch]
serviceaccounts sa true ServiceAccount [create delete deletecollection get list patch update watch]
services svc true Service [create delete get list patch update watch]
controllerrevisions apps true ControllerRevision [create delete deletecollection get list patch update watch]
daemonsets ds apps true DaemonSet [create delete deletecollection get list patch update watch]
deployments deploy apps true Deployment [create delete deletecollection get list patch update watch]
replicasets rs apps true ReplicaSet [create delete deletecollection get list patch update watch]
statefulsets sts apps true StatefulSet [create delete deletecollection get list patch update watch]
localsubjectaccessreviews authorization.k8s.io true LocalSubjectAccessReview [create]
horizontalpodautoscalers hpa autoscaling true HorizontalPodAutoscaler [create delete deletecollection get list patch update watch]
cronjobs cj batch true CronJob [create delete deletecollection get list patch update watch]
jobs batch true Job [create delete deletecollection get list patch update watch]
leases coordination.k8s.io true Lease [create delete deletecollection get list patch update watch]
networkpolicies crd.projectcalico.org true NetworkPolicy [delete deletecollection get list patch create update watch]
networksets crd.projectcalico.org true NetworkSet [delete deletecollection get list patch create update watch]
events ev events.k8s.io true Event [create delete deletecollection get list patch update watch]
ingresses ing extensions true Ingress [create delete deletecollection get list patch update watch]
ingresses ing networking.k8s.io true Ingress [create delete deletecollection get list patch update watch]
networkpolicies netpol networking.k8s.io true NetworkPolicy [create delete deletecollection get list patch update watch]
poddisruptionbudgets pdb policy true PodDisruptionBudget [create delete deletecollection get list patch update watch]
rolebindings rbac.authorization.k8s.io true RoleBinding [create delete deletecollection get list patch update watch]
roles rbac.authorization.k8s.io true Role [create delete deletecollection get list patch update watch]
- namespaced=false
test@singlek8s:~$ kubectl api-resources -o wide --namespaced=false
NAME SHORTNAMES APIGROUP NAMESPACED KIND VERBS
componentstatuses cs false ComponentStatus [get list]
namespaces ns false Namespace [create delete get list patch update watch]
nodes no false Node [create delete deletecollection get list patch update watch]
persistentvolumes pv false PersistentVolume [create delete deletecollection get list patch update watch]
mutatingwebhookconfigurations admissionregistration.k8s.io false MutatingWebhookConfiguration [create delete deletecollection get list patch update watch]
validatingwebhookconfigurations admissionregistration.k8s.io false ValidatingWebhookConfiguration [create delete deletecollection get list patch update watch]
customresourcedefinitions crd,crds apiextensions.k8s.io false CustomResourceDefinition [create delete deletecollection get list patch update watch]
apiservices apiregistration.k8s.io false APIService [create delete deletecollection get list patch update watch]
tokenreviews authentication.k8s.io false TokenReview [create]
selfsubjectaccessreviews authorization.k8s.io false SelfSubjectAccessReview [create]
selfsubjectrulesreviews authorization.k8s.io false SelfSubjectRulesReview [create]
subjectaccessreviews authorization.k8s.io false SubjectAccessReview [create]
certificatesigningrequests csr certificates.k8s.io false CertificateSigningRequest [create delete deletecollection get list patch update watch]
bgpconfigurations crd.projectcalico.org false BGPConfiguration [delete deletecollection get list patch create update watch]
bgppeers crd.projectcalico.org false BGPPeer [delete deletecollection get list patch create update watch]
blockaffinities crd.projectcalico.org false BlockAffinity [delete deletecollection get list patch create update watch]
clusterinformations crd.projectcalico.org false ClusterInformation [delete deletecollection get list patch create update watch]
felixconfigurations crd.projectcalico.org false FelixConfiguration [delete deletecollection get list patch create update watch]
globalnetworkpolicies gnp crd.projectcalico.org false GlobalNetworkPolicy [delete deletecollection get list patch create update watch]
globalnetworksets crd.projectcalico.org false GlobalNetworkSet [delete deletecollection get list patch create update watch]
hostendpoints crd.projectcalico.org false HostEndpoint [delete deletecollection get list patch create update watch]
ipamblocks crd.projectcalico.org false IPAMBlock [delete deletecollection get list patch create update watch]
ipamconfigs crd.projectcalico.org false IPAMConfig [delete deletecollection get list patch create update watch]
ipamhandles crd.projectcalico.org false IPAMHandle [delete deletecollection get list patch create update watch]
ippools crd.projectcalico.org false IPPool [delete deletecollection get list patch create update watch]
kubecontrollersconfigurations crd.projectcalico.org false KubeControllersConfiguration [delete deletecollection get list patch create update watch]
runtimeclasses node.k8s.io false RuntimeClass [create delete deletecollection get list patch update watch]
podsecuritypolicies psp policy false PodSecurityPolicy [create delete deletecollection get list patch update watch]
clusterrolebindings rbac.authorization.k8s.io false ClusterRoleBinding [create delete deletecollection get list patch update watch]
clusterroles rbac.authorization.k8s.io false ClusterRole [create delete deletecollection get list patch update watch]
priorityclasses pc scheduling.k8s.io false PriorityClass [create delete deletecollection get list patch update watch]
csidrivers storage.k8s.io false CSIDriver [create delete deletecollection get list patch update watch]
csinodes storage.k8s.io false CSINode [create delete deletecollection get list patch update watch]
storageclasses sc storage.k8s.io false StorageClass [create delete deletecollection get list patch update watch]
volumeattachments storage.k8s.io false VolumeAttachment [create delete deletecollection get list patch update watch]