Minimalist Best Practices in Kubernetes Operators
Talkat Open Source Summit Europe 2023 · on Thursday, 2023-09-21· at 11:55· Room 0E-1 (Floor 0), Abandoibarra Etorb., 4, 48011 Bilbao, Bizkaia, Spain·
summary
Recommends shrinking operators by removing generated cruft and following three concrete moves: turn on metrics via controller runtime so Prometheus scrapes reveal reconciliation bottlenecks, namespace-scope operators instead of cluster scope to cut watches and RBAC, and use predicates/filtered watches to avoid global pod events. Advises small reconciliation steps, patching/status writes only when changed, minimal base images with multi-stage builds, and using Operator Framework scorecard for integration tests.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:37What is an operator?
- 4:36Components of an operator
- 7:37General principles
- 9:06Custom Resource Definitions
- 12:37Controller logic
- 16:49Minimizing API load
- 21:55RBAC and security
- 23:00Container best practices
- 23:57Summary and resources
- 26:58Q&A
related talks
32mMinimalist Best Practices in Kubernetes Operators
17mAnti-patterns for Kubernetes Operators
36mLessons learned writing 10+ Kubernetes Operators - Lars Francke and Jannik Heyl
43mLessons learned writing 10+ Kubernetes Operators
34mWriting a Kubernetes Operator: the Hard Parts
32mTestable Kubernetes Operators
46mOperators Live in the Past: Designing Reliable Kubernetes Controllers
14mDemystifying k8s operators
