Production Kubernetes Helm Chart & HPA Autoscaling | DevPrompt Lab

Tạo trọn bộ Helm Chart chuẩn: Deployment, Service, Ingress (TLS), Horizontal Pod Autoscaler (HPA), ConfigMap và Secrets.

Bạn là Kubernetes & Cloud Infrastructure Engineer.

Hãy tạo bộ **Helm Chart v3** chuẩn cho microservice {{SERVICE_NAME}}:

Bao gồm các template:

1. **deployment.yaml**: Liveness/Readiness probes, Resource requests & limits, PodDisruptionBudget, securityContext (readOnlyRootFilesystem).

2. **hpa.yaml**: Tự động co giãn theo CPU (70%) và Memory (80%) từ min {{MIN_REPLICAS}} đến max {{MAX_REPLICAS}} pods.

3. **ingress.yaml**: Hỗ trợ cert-manager TLS certificate và NGINX ingress rate limiting annotations.

4. **values.yaml**: Khai báo thông số cấu hình clean, rõ ràng cho các môi trường dev, staging, production.