当前位置:网站首页>什么是 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
边栏推荐
- VMware: use commands to update or upgrade VMware esxi hosts
- Using xgboost with tidymodels
- Using R-Pack premsim to predict microsatellite instability based on gene expression
- 使用R包skimr汇总统计量的优美展示
- [unity, C #] character keyboard input steering and rotation
- Review of the 16th issue of HMS core discovery | play with the new "sound" state of AI with tiger pier
- ES6-箭头函数this指向
- PHP basics uses arrays to save data
- 数据可视化设计指南(信息图表篇)
- 2022cuda summer training camp Day2 practice
猜你喜欢

开源峰会抢先看 | 7 月 29 日分论坛 & 活动议程速览

基于STM32设计的酒驾报警系统

数据可视化设计指南(信息图表篇)

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

若依集成minio实现分布式文件存储

Pytorch 入门

JVM知识点详细整理(长文警告)

Drawing box and ellipse of WPF screenshot control (IV) "imitating wechat"

The heavy | open atomic school source activity was officially launched

Alibaba architects spent a year sorting out the "Lucene advanced document", and you are also a big factory employee!
随机推荐
Alibaba architects spent a year sorting out the "Lucene advanced document", and you are also a big factory employee!
R 语言 二分法与 牛顿迭代法计算中方程的根
ES6 arrow function this points to
LeetCode二叉树系列——144.二叉树的前序遍历
R package pedquant realizes stock download and financial quantitative analysis
GPO:在 Start/Logon 中使用 PowerShell 脚本
2022cuda summer training camp Day2 practice
JVM知识点详细整理(长文警告)
Watch the open source summit first | quick view of the sub Forum & Activity agenda on July 29
2.安装MySQL
GPO: using PowerShell scripts in start/logon
Use tidymodels to solve the binary logistic model
Luogu p4185 [usaco18jan]mootube g problem solution
DOD and Dor, two artifacts to reduce "cognitive bias"
Kunlunbase support for MySQL private DML syntax
Determine whether the values of two objects are equal
leetcode-位运算
ADB shell WM command and usage:
QT工程基本构建
JS two array objects for merging and de duplication