Files
kuboard-press/learning/k8s-advanced/extend/cr.md
2019-11-30 22:36:49 +08:00

25 lines
1019 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
# vssueId: 159
layout: LearningLayout
description: Kubernetes教程_通过Kubernetes的aggregation层可以在已提供的K8S核心API之外增加额外的API
meta:
- name: keywords
content: Kubernetes教程,K8S教程,CustomResourfce
---
# 自定义资源CustomResource
<AdSenseTitle>
> 参考文档: [Custom Resources](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/)
自定义资源Custom Resource是对 Kubernetes API 的扩展。本文描述了如何添加自定义资源到 Kubernetes 集群,以及何时使用 standalone service。提供了两种添加自定义资源的方法以及如何选择应该使用哪种方法。
[[TOC]]
</AdSenseTitle>
## Custom Resources
资源Resource是指 [Kubernetes API](https://kubernetes.io/docs/reference/using-api/api-overview/) 的一个端点,存储了一组特定类型的 [API 对象](/learning/k8s-intermediate/obj/k8s-object.html)。例如,内建的 pods 资源包含了一组 Pod 对象。