当前位置:网站首页>Kubernetes资源编排系列之四: CRD+Operator篇
Kubernetes资源编排系列之四: CRD+Operator篇
2022-08-08 10:17:00 【InfoQ】
1. 什么是CRD
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: humans.human.sreworks.io
spec:
group: human.sreworks.io
names:
kind: Human
plural: humans
scope: Namespaced
versions:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
description: ...
type: object
properties:
spec:
type: object
properties:
company:
type: string
...
2. 什么是Operator
apiVersion: v1
kind: Human
metadata:
name: Bob
spec:
birth: 648489237
sex: male
location: home
company: helloworld
status:
- lastProbeTime: null
lastTransitionTime: "2022-07-20T08:41:04Z"
status: "True"
type: Ready
apiVersion: v1
kind: Company
metadata:
name: helloworld
spec:
startTime: 932488234
isOpen: false

3. 如何实现K8S Operator

Spark Operator

4. 大数据通用Operator设计与实践

default:
def: crd.yaml
deploy:
- cmd: helm
chart: vvp/vvp
values: vvp/values.yaml
maintain:
- watch:
category: ResourceDidChange
kind: Service
apiVersion: v1
action:
- cmd: kube-patch
file: ingressUpdate.yaml
5. 总结
边栏推荐
- 移动端/嵌入式-CV模型-2018:MobelNets-v2
- 巧用Prometheus来扩展kubernetes调度器
- "Inversion of Control" and "Dependency Inversion", can't you tell the difference?
- A concise tutorial on expanding (increasing capacity) of VMWare Esxi virtual system data storage
- Feign application and source code analysis
- 键值数据库是将什么作为标识符的呢?
- Mobile/Embedded-CV Model-2018: MobileFaceNets
- Leetcode 700. 二叉搜索树中的搜索
- PWA 应用 Service Worker 缓存的一些可选策略和使用场景
- 各种attention的代码实现
猜你喜欢
Multi-scalar multiplication: state of the art & new ideas
小程序使用formdata格式传参
2022 world conference on robots is holding, intelligent robot booster to intelligent, digital transformation and upgrading traditional industry
图像分割 总结
机器学习模型太慢?来看看英特尔(R) 扩展加速
HMS Core分析服务智能运营6.5.1版本上线
重载与重写有什么区别?
People's Congress Jincang database login, view database
"Weekly Translate Go" This time we have something different!-- "How to Code in Go" series launched
"Inversion of Control" and "Dependency Inversion", can't you tell the difference?
随机推荐
A concise tutorial on expanding (increasing capacity) of VMWare Esxi virtual system data storage
【AGC】开放式测试示例
在mysql中,存储过程中参数为中文 乱码解决方案
Multi-scalar multiplication: state of the art & new ideas
go web之响应用户
深度强化学习发展史
左益豪:用代码创造一个新世界|OneFlow U
Simple Mixed Operations Calculator
In the.net core, the use of c # realize fastdfs batch file upload more
使用.NET简单实现一个Redis的高性能克隆版(三)
播放器的一些改进
Detailed Explanation of Gradient Vanishing and Gradient Explosion Problems
Using classification weights, it is easy to solve the problem of data imbalance
键值数据库中可以对值进行查询嘛?
xgboost 加速
01-MQ介绍以及产品比较
"Weekly Translate Go" This time we have something different!-- "How to Code in Go" series launched
Service Mesh迁移原则
功夫再高也怕菜刀,产品经理的那些事
嵌入式C编程中错误异常该如何统一处理?