什么是 Kubernetes API 资源(在 ResourceAttributes 中)和动词?

What are the Kubernetes API resources (within ResourceAttributes) and verbs?

我想了解在实施自定义 webhook 时可能会出现哪些授权请求。引用名为 resource 的字符串字段的 docs describe a SubjectAccessReview that references a SubjectAccessReviewSpec that references a ResourceAttributes 对象,描述为:

Resource is one of the existing resource types. "*" means all.

所有资源的列表在哪里,定义了哪些资源?

请求中可以出现哪些动词?

Kubernetes 资源组合在一起是因为它们在逻辑上是 related.For 个示例,apps/v1beta1/deploymentgroup/version/resource 或 GVR)。因此,Pods 需要 运行 所有 time.That 这就是它们被称为 workload 的原因。另一个例子是 batch/v1/cronJob 因此,Pod 需要 运行 短时间。

通过使用以下命令,您可以列出集群中的当前 Groups/Versions。

kubectl api-versions 

现在如果你想知道你可以对资源进行什么样的操作,你可以使用下面的命令。它将列出带有解释的操作。

kubectl --help

我附上了进一步了解 kube-api 服务器的链接

deep-dive-api-server-part-1

deep-dive-api-server-part-2

deep-dive-api-server-part-3

typical-flow-in-k8s

what-happens-when-k8s