当前位置:网站首页>什么是 Kubernetes 自定义资源定义 (CRD)?
什么是 Kubernetes 自定义资源定义 (CRD)?
2022-07-29 10:52:00 【mikes zhang】

自定义资源定义 (CRD) 是 Kubernetes API 扩展,可以定义新的对象类型。Pod、ReplicaSet、ConfigMap 和 Ingress 是常见内置资源的示例。CRD 允许您将全新的类型添加到此列表中,然后使用熟悉的 Kubernetes 工具(例如 Kubectl)管理它们。
CRD 机制是有意抽象的,可以以多种方式用于存储数据和构建新功能。您会在许多流行的社区工具中找到自定义资源:Cert-Manager定义了表示 SSL 证书和颁发者的对象,而 Helm将 Charts 表示为它们自己的 CRD。
什么是资源?
Kubernetes 资源定义了可以存储在集群中的数据类型。它们是通过 Kubernetes API 访问的,该 API 提供了用于在每种资源类型中创建、列出和修改项目的端点。
您可以添加自定义资源以在集群中存储您自己的任意数据。您创建的项目将由 etcd 控制平面组件与内置资源的实例一起存储。API 会自动显示自定义资源,因此您无需设置自己的工具来创建项目实例。
默认情况下,CRD 充当简单的数据结构。虽然野外的 CRD 通常有自己的行为,但这不是 CRD 机制提供的。自定义 Kubernetes控制器和操作符可用于围绕自定义资源实现功能。如果没有控制器,CRD 的项目将始终作为静态集群内数据存在,您可以通过 Kubernetes API 提供的 CRUD 端点与之交互。
CRD 是可以随时创建和删除的动态组件。Kubernetes 中包含的一些对象类型也被实现为 CRD,从而在集群的核心中提供了更多的模块化。
创建 CRD
边栏推荐
- Mitsubishi PLC and Siemens PLC
- AI模型风险评估 第2部分:核心内容
- ES6-箭头函数this指向
- VMware: use commands to update or upgrade VMware esxi hosts
- Hugo NexT V4 介绍
- Pyqt5 rapid development and practice 6.6 qformlayout & 6.7 nested layout & 6.8 qsplitter
- Site data collection -scrapy usage notes
- Using Riemann sum to calculate approximate integral in R language
- Error: Protobuf syntax version should be first thing in file
- Kunlun storage vs PostgreSQL OLTP test
猜你喜欢

「PHP基础知识」使用数组保存数据

Function comparison between report control FastReport and stimulus soft

WPF 截图控件之绘制方框与椭圆(四) 「仿微信」

Basic construction of QT project

AI模型风险评估 第2部分:核心内容

开放原子开源基金会秘书长孙文龙 | 凝心聚力,共拓开源

Learning R language these ebooks are enough!

How can agile development reduce cognitive bias in collaboration| Agile way

重磅 | 2022 开放原子全球开源峰会在北京开幕

DOD and Dor, two artifacts to reduce "cognitive bias"
随机推荐
Alibaba P8 broke out this interview guide for big factories. After reading it, the salary soared by 30K!
Understand what a binary tree is (types, traversal methods, definitions of binary trees)
Hugo NexT V4 介绍
Software testing dry goods
Survival analysis using rtcga clinical data
Spark efficient data analysis 02, basic knowledge 13
KRYSTAL:审计数据中基于知识图的战术攻击发现框架
LeetCode_1049_最后一块石头的重量Ⅱ
Zhou Hongyi: 360 is the largest secure big data company in the world
How can agile development reduce cognitive bias in collaboration| Agile way
StarRocks 技术内幕:实时更新与极速查询如何兼得
Watch the open source summit first | quick view of the sub Forum & Activity agenda on July 29
R语言 使用数据集 veteran 进行生存分析
使用R包skimr汇总统计量的优美展示
Factoextra: visual PCA of multivariate statistical methods
Pyqt5 rapid development and practice 6.6 qformlayout & 6.7 nested layout & 6.8 qsplitter
Error: Protobuf syntax version should be first thing in file
QT工程基本构建
报表控件FastReport与StimulSoft功能对比
浅谈string中的compareTo方法