我有另一篇blog专门记录了Kubernetes Operators这本书的总结: Kubernetes Operators
根据书中资料总结的demo: https://github.com/chengdol/k8s-operator-sdk-demo
最近安排我去写一个operator的任务,最开始是helm-based operator, then evolve to Go-based, 挺有意思。How to explain Kubernetes Operators in plain English: https://enterprisersproject.com/article/2019/2/kubernetes-operators-plain-english
Brief introduction: https://www.youtube.com/watch?v=DhvYfNMOh6A
首先,从K8s官网上粗略地了解一下什么是:
-
Getting started with the Operator SDK This is from Red Hat, excellent!
-
Advanced Operators are designed to handle upgrades seamlessly, react to failures automatically, and not take shortcuts, like skipping a software backup process to save time.
Complex and stateful applications are where an Operator can shine. The cloud-like capabilities that are encoded into the Operator code can provide an advanced user experience, automating such features as updates, backups and scaling.
-
Introducing Operators: Putting Operational Knowledge into Software
-
Best practices for building Kubernetes Operators and stateful apps
CNCF:
-
Build Kubernetes Operators from Helm Charts in 5 steps However when it comes to stateful applications there is more to the upgrade process than upgrading the application itself.
Helm Charts often are insufficient for upgrading stateful applications and services (e.g. PostgreSQL or Elasticsearch) which require a complex and controlled upgrade processes beyond upgrading the application version.
一些中文资料,最近在看书Kuberneter Operators,然后被Go卡主了,准备开始学习:
- 如何在kubernetes中开发自己的Operator 提到了如何用go去写,但很简略,只能给个大致图像
- Go 语言中文网
- 自己动手写Operator
- Kubernetes API 与 Operator,不为人知的开发者战争
- Kubernetes Operator 快速入门教程