Kubernetes Operator 实践 - MySQL容器化custom resource definition(CRD) ü custom controller Operator 是什么 • Kubernetes 中一切都可视为资源 • 默认资源类型:如 Pod、Service、Volume 等 • Kubernetes 1.7 之后增加了 CRD 自定义资源 • 二次开发扩展 Kubernetes API CRD 的基本原理 ① 观察资源的当前状态 mysql pod-5 mysql pod-6 … … mysql pod-M Node1 kubelet kube-proxy docker mysql pod-0 mysql pod-1 … … mysql pod-N NodeN Mysql Operator pod … … mysql Pod-T 0. 创建 CRD 3. 集群管理 2. 调度 pod Ceph Reflector DeltaFIFO Local Storage Callbacks OnAdd OnUpdate OnDelete WorkQueue List/Watch - CRD - Pod Write Informer Worker ReadOnly • Informer:监听事件并触发回调函数的二级缓存工具包 • WorkQueue:事件合并、过滤、延时、限速 Operator0 码力 | 42 页 | 4.77 MB | 1 年前3
Manage Edge Nodes with KubeEdge and Case StudyKubeMaster Edge Controller Etcd@Cloud Sync Service Etcd@Edge App Engine Status Configuration (Pod Spec) • Goal • Offline autonomous – network connectivity • Only sync change data – network performance • Edge Controller: representative of Edge nodes to talk to KubeMaster • Get configuration (e.g. pod spec) • Reports Edge nodes status • AppEngine: Control containers Kubernetes edge extension Current0 码力 | 11 页 | 1.42 MB | 1 年前3
基于 KUBERNETES 的 容器器 + AI 平台企业典型的多租户模型 租户 Tenant User User group Namespace Deployment Registry project CI/CD workspace Pod … resources CPU quota MEM quota Storage quota Device (GPU) quota …. quota Service0 码力 | 19 页 | 3.55 MB | 1 年前3
共 3 条
- 1













