码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • Operator SDK


    operator-sdk是operator framework的一部分,是一个致力于简化整个opearator creation的整个过程的一个社区项目。有了operator-sdk,我们只需要在control loop里面写定制的operational逻辑就可以了。

    三种operator SDK supports:

    类型生成的objects你需要做
    Go Operator
    • General go program structure
    • Boilerplate code to talk to the Kubernetes API
    • Boilerplate code to watch for Kubernetes objects of interest
    • An entry point to the reconciliation loop
    • An example YAML files based on CRDs
    • Custom objects via CRDs
    • Control loop logic in Go
    • Potentially artistic stunts only possible by talking directly to the API from Go
    Ansible Operator
    • A Go program that runs an Ansible playbook or role every time a certain type of object is detected / modified
    • Ansible playbook or role
    • Custom objects via CRD
    Helm Operator
    • A custom object via CRD containing the same properties as the chart's values.yaml
    • A Go program that reads a helm chart and deploys all its resources
    • Watch statements to detect changes in the custom objects specification, re-deploying all resources with updated values
    • The location / repository of the helm chart

    其中, go和ansible operator已经非常成熟了,可以支持所有的操作,但是helm operator还不成熟,只能支持简单的安装和升级。

  • 相关阅读:
    Java并发编程常见面试题总结
    解码2022中国网安强星丨注重攻防实战化验证,长亭以安全原子能力打造体系化安全
    招投标系统软件源码,招投标全流程在线化管理
    算法27:最长公共子序列——样本模型(4)
    image process那个项目的图片上色问题 第二版再说吧 这个是一个可行的方案 cv.histogram 的颜色问题
    ceph源码阅读 erasure-code
    APP如何实现「年轻化」的需求?
    浅谈-动态路由之OSPF的理解
    Vue框架学习(第十三课)Vuex状态管理中的store和state属性
    基于matlab的图像二维小波分解算法仿真
  • 原文地址:https://blog.csdn.net/solinger/article/details/125477685
  • 最新文章
  • 花29块让AI帮我写代码:一个测试工程师的Hermes使用体验
    Ubuntu 24.04 安装企业微信(deepin-wine 版)完整指南
    DeepSeek-Lane:在 Cursor 内使用 DeepSeek V4 模型
    OpenHarmony.NET 停更事件复盘和思考
    用 AI Agent 做面试准备和面试复盘:我写了一个Skill,把多轮面试当成系统来打
    你的前端代码打包后究竟经历了什么?
    开多个 Agent 后 Claude Code 账单翻了 4 倍,一个配置解决了
    Kubernetes Gateway API 完全指南
    IntelliJ IDEA 无法识别 Maven SNAPSHOT 依赖,但 Maven 编译正常
    C# 基础入门指南:从零开始学习 C# 编程
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
小工具 小游戏
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1

京公网安备 11010502049817号