当前位置:网站首页>什么是 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
边栏推荐
- 聊聊性能测试环境搭建
- R包pedquant实现股票下载和金融量化分析
- JVM知识点详细整理(长文警告)
- Open source, compliance escort! 2022 open atom global open source summit open source compliance sub forum is about to open
- Using Riemann sum to calculate approximate integral in R language
- R language Monte Carlo method and average method are used to calculate the definite integral. Considering the random point casting method, the confidence is 0.05, and the requirement is ϵ= 0.01, numbe
- Roots of equations in R language dichotomy and Newton iteration
- LeetCode_278_第一个错误的版本
- leetcode-位运算
- 重磅 | 2022 开放原子全球开源峰会在北京开幕
猜你喜欢

阿里架构师耗时一年整理的《Lucene高级文档》,吃透你也是大厂员工!

leetcode-位运算

DNS协议、ICMP协议、NAT技术

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

主子仓库都修改,如何进行同步?

Alibaba architects spent a year sorting out the "Lucene advanced document", and you are also a big factory employee!

Factoextra: visual PCA of multivariate statistical methods

StarRocks 技术内幕:实时更新与极速查询如何兼得

Analysis of QT basic engineering

PHP basics uses arrays to save data
随机推荐
Roots of equations in R language dichotomy and Newton iteration
Hugo NexT V4 介绍
Getting started with pytoch
Use R-Pack skimr to collect the beautiful display of President measurement
重磅 | 开放原子校源行活动正式启动
GPO:在 Start/Logon 中使用 PowerShell 脚本
Use tidymodels to solve the binary logistic model
Why use markdown to write?
重磅 | 2022 开放原子全球开源峰会在北京开幕
Zhou Hongyi: 360 is the largest secure big data company in the world
Conference OA project - my approval
ADB shell WM command and usage:
1.MySQL数据库的介绍
通过tidymodels使用XGBOOST
学习R语言这几本电子书就够了!
【图像处理】基于中轴变换实现图像骨架提取附matlab代码
Survival analysis using rtcga clinical data
Achieve the effect of a menu tab
Adcode city code in Gaode map API
使用R包skimr汇总统计量的优美展示