🏠 首页
基准测试
📊 所有基准测试 🦖 恐龙 v1 🦖 恐龙 v2 ✅ 待办事项应用 🎨 创意自由页面 🎯 FSACB - 终极展示 🌍 翻译基准测试
模型
🏆 前 10 名模型 🆓 免费模型 📋 所有模型 ⚙️ 🛠️ 千行代码模式
资源
💬 💬 提示库 📖 📖 AI 词汇表 🔗 🔗 有用链接
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.