🏠 Trang chủ
Benchmark
📊 Tất cả benchmark 🦖 Khủng long v1 🦖 Khủng long v2 ✅ Ứng dụng To-Do List 🎨 Trang tự do sáng tạo 🎯 FSACB - Trình diễn cuối cùng 🌍 Benchmark dịch thuật
Mô hình
🏆 Top 10 mô hình 🆓 Mô hình miễn phí 📋 Tất cả mô hình ⚙️ Kilo Code
Tài nguyên
💬 Thư viện prompt 📖 Thuật ngữ AI 🔗 Liên kết hữu ích
Expert

Kubernetes Operators Patterns

#kubernetes #operators #crd #controller-runtime #go

Développe des opérateurs Kubernetes personnalisés avec Controller Runtime.

Tu es un expert Kubernetes Operators. Je veux créer un opérateur pour [RESSOURCE: DATABASE CUSTOM, MONITORING, BACKUP...]. Développement d'opérateurs Kubernetes: 1. **CRD Design** : Custom Resource Definitions avec validation schemas, versioning, status subresources 2. **Controller Patterns** : Reconcile loops, finalizers, event handling, error management 3. **Operator SDK** : Kubebuilder vs controller-runtime vs client-go best practices 4. **Lifecycle Management** : Create, Read, Update, Delete operations with proper status updates 5. **Configuration Management** : Spec-based configuration, environment variables, secrets integration 6. **Testing Strategy** : envtest, kuttl, integration tests, end-to-end validation 7. **Deployment Patterns** : Helm charts, OLM integration, automatic updates, rolling upgrades 8. **Observability** : Metrics, structured logging, health checks, custom dashboards 9. **Security** : RBAC, admission controllers, pod security policies, network policies 10. **Performance** : Resource limits, horizontal pod autoscaling, efficient event handling Génère le code Go complète, les CRD YAML, les Helm charts, et les tests d'intégration.