美文网首页Kubernetes
Kubernetes资源类型

Kubernetes资源类型

作者: 王勇1024 | 来源:发表于2020-09-23 15:26 被阅读0次

通过如下命令可以查看哪些Kubernetes资源对象属于命名空间,而哪些资源对象不属于命名空间,执行命令如下:

$ kubectl api-resources --namespaced=true
NAME                        SHORTNAMES            APIGROUP                    NAMESPACED   KIND
bindings                                                                      true         Binding
configmaps                  cm                                                true         ConfigMap
endpoints                   ep                                                true         Endpoints
events                      ev                                                true         Event
limitranges                 limits                                            true         LimitRange
persistentvolumeclaims      pvc                                               true         PersistentVolumeClaim
pods                        po                                                true         Pod
podtemplates                                                                  true         PodTemplate
replicationcontrollers      rc                                                true         ReplicationController
resourcequotas              quota                                             true         ResourceQuota
secrets                                                                       true         Secret
serviceaccounts             sa                                                true         ServiceAccount
services                    svc                                               true         Service
applications                                      app.k8s.io                  true         Application
controllerrevisions                               apps                        true         ControllerRevision
daemonsets                  ds                    apps                        true         DaemonSet
deployments                 deploy                apps                        true         Deployment
replicasets                 rs                    apps                        true         ReplicaSet
statefulsets                sts                   apps                        true         StatefulSet
workflows                   wf                    argoproj.io                 true         Workflow
policies                                          authentication.istio.io     true         Policy
localsubjectaccessreviews                         authorization.k8s.io        true         LocalSubjectAccessReview
horizontalpodautoscalers    hpa                   autoscaling                 true         HorizontalPodAutoscaler
cronjobs                    cj                    batch                       true         CronJob
jobs                                              batch                       true         Job
jobs                        vcjob,vj              batch.volcano.sh            true         Job
commands                                          bus.volcano.sh              true         Command
adapters                                          config.istio.io             true         adapter
attributemanifests                                config.istio.io             true         attributemanifest
handlers                                          config.istio.io             true         handler
httpapispecbindings                               config.istio.io             true         HTTPAPISpecBinding
httpapispecs                                      config.istio.io             true         HTTPAPISpec
instances                                         config.istio.io             true         instance
quotaspecbindings                                 config.istio.io             true         QuotaSpecBinding
quotaspecs                                        config.istio.io             true         QuotaSpec
rules                                             config.istio.io             true         rule
templates                                         config.istio.io             true         template
leases                                            coordination.k8s.io         true         Lease
s2ibinaries                                       devops.kubesphere.io        true         S2iBinary
s2ibuilders                 s2ib                  devops.kubesphere.io        true         S2iBuilder
s2iruns                     s2ir                  devops.kubesphere.io        true         S2iRun
events                      ev                    events.k8s.io               true         Event
daemonsets                  ds                    extensions                  true         DaemonSet
deployments                 deploy                extensions                  true         Deployment
ingresses                   ing                   extensions                  true         Ingress
networkpolicies             netpol                extensions                  true         NetworkPolicy
replicasets                 rs                    extensions                  true         ReplicaSet
mpijobs                     mj,mpij               kubeflow.org                true         MPIJob
pytorchjobs                                       kubeflow.org                true         PyTorchJob
scheduledworkflows          swf                   kubeflow.org                true         ScheduledWorkflow
studyjobs                                         kubeflow.org                true         StudyJob
tfjobs                                            kubeflow.org                true         TFJob
fluentbits                                        logging.kubesphere.io       true         FluentBit
controllerrevisions                               metacontroller.k8s.io       true         ControllerRevision
pods                                              metrics.k8s.io              true         PodMetrics
alertmanagers                                     monitoring.coreos.com       true         Alertmanager
podmonitors                                       monitoring.coreos.com       true         PodMonitor
prometheuses                                      monitoring.coreos.com       true         Prometheus
prometheusrules                                   monitoring.coreos.com       true         PrometheusRule
servicemonitors                                   monitoring.coreos.com       true         ServiceMonitor
destinationrules            dr                    networking.istio.io         true         DestinationRule
envoyfilters                                      networking.istio.io         true         EnvoyFilter
gateways                    gw                    networking.istio.io         true         Gateway
serviceentries              se                    networking.istio.io         true         ServiceEntry
sidecars                                          networking.istio.io         true         Sidecar
virtualservices             vs                    networking.istio.io         true         VirtualService
networkpolicies             netpol                networking.k8s.io           true         NetworkPolicy
poddisruptionbudgets        pdb                   policy                      true         PodDisruptionBudget
rolebindings                                      rbac.authorization.k8s.io   true         RoleBinding
roles                                             rbac.authorization.k8s.io   true         Role
rbacconfigs                                       rbac.istio.io               true         RbacConfig
servicerolebindings                               rbac.istio.io               true         ServiceRoleBinding
serviceroles                                      rbac.istio.io               true         ServiceRole
podgroups                   pg,podgroup-v1beta1   scheduling.volcano.sh       true         PodGroup
authorizationpolicies                             security.istio.io           true         AuthorizationPolicy
servicepolicies                                   servicemesh.kubesphere.io   true         ServicePolicy
strategies                                        servicemesh.kubesphere.io   true         Strategy

下列资源对象不属于命名空间:

$ kubectl api-resources --namespaced=false
NAME                              SHORTNAMES        APIGROUP                       NAMESPACED   KIND
componentstatuses                 cs                                               false        ComponentStatus
namespaces                        ns                                               false        Namespace
nodes                             no                                               false        Node
persistentvolumes                 pv                                               false        PersistentVolume
mutatingwebhookconfigurations                       admissionregistration.k8s.io   false        MutatingWebhookConfiguration
validatingwebhookconfigurations                     admissionregistration.k8s.io   false        ValidatingWebhookConfiguration
customresourcedefinitions         crd,crds          apiextensions.k8s.io           false        CustomResourceDefinition
apiservices                                         apiregistration.k8s.io         false        APIService
meshpolicies                                        authentication.istio.io        false        MeshPolicy
tokenreviews                                        authentication.k8s.io          false        TokenReview
selfsubjectaccessreviews                            authorization.k8s.io           false        SelfSubjectAccessReview
selfsubjectrulesreviews                             authorization.k8s.io           false        SelfSubjectRulesReview
subjectaccessreviews                                authorization.k8s.io           false        SubjectAccessReview
certificatesigningrequests        csr               certificates.k8s.io            false        CertificateSigningRequest
s2ibuildertemplates               s2ibt             devops.kubesphere.io           false        S2iBuilderTemplate
podsecuritypolicies               psp               extensions                     false        PodSecurityPolicy
compositecontrollers              cc,cctl           metacontroller.k8s.io          false        CompositeController
decoratorcontrollers              dec,decorators    metacontroller.k8s.io          false        DecoratorController
nodes                                               metrics.k8s.io                 false        NodeMetrics
podsecuritypolicies               psp               policy                         false        PodSecurityPolicy
clusterrolebindings                                 rbac.authorization.k8s.io      false        ClusterRoleBinding
clusterroles                                        rbac.authorization.k8s.io      false        ClusterRole
clusterrbacconfigs                                  rbac.istio.io                  false        ClusterRbacConfig
priorityclasses                   pc                scheduling.k8s.io              false        PriorityClass
queues                            q,queue-v1beta1   scheduling.volcano.sh          false        Queue
storageclasses                    sc                storage.k8s.io                 false        StorageClass
volumeattachments                                   storage.k8s.io                 false        VolumeAttachment
workspaces                                          tenant.kubesphere.io           false        Workspace

相关文章

  • Kubernetes资源类型

    通过如下命令可以查看哪些Kubernetes资源对象属于命名空间,而哪些资源对象不属于命名空间,执行命令如下: 下...

  • training 第一章知识补漏

    引用xml资源 当需要从xml中引用资源对象时,必须使用@ 紧随其后的是资源类型 然后是资源民称 @资源类型 /...

  • Unity内存申请和释放

    1.资源类型 GameObject, Transform, Mesh, Texture, Material, Sh...

  • Android资源类型

    Android开发中,所用到的资源文件根据存放位置可以分为两大类: assets 位于工程的assets目录下,该...

  • 网站资源类型

    1.网站资源类型 1.静态资源:a 利用代码文件扩展名 html jpj css jsb 利用静态方便搜索引擎收录...

  • Android studio 创建 Drawable shap

    右键 res => new => android resource file 修改资源类型以及根节点

  • php笔记

    资源类型 resource (无法自定义的数据类型) 数据转化

  • 技术资源

    1Kubernetes 1)Kubernetes指南[https://kubernetes.feisky.xyz/...

  • Kubernetes

    Kubernetes Introduction to Kubernetes with Fedora

  • iOS 开发库(iOS Developer Library)

    1、资源类型Resource Types 起步Getting Started 参考Reference 示例代码Sa...

网友评论

    本文标题:Kubernetes资源类型

    本文链接:https://www.haomeiwen.com/subject/vlloyktx.html