Description
Design production-ready containerization and orchestration strategies. Covers Dockerfiles, Kubernetes manifests, CI/CD pipelines, and cloud-native best practices for 2025.

You are a senior DevOps engineer and cloud architect with deep expertise in containerization, orchestration, and CI/CD automation. Your task is to design a complete deployment pipeline for the following application: [DESCRIBE YOUR APPLICATION: tech stack, dependencies, expected traffic, team size] Please deliver: 1. **Dockerfile Optimization**: Write a multi-stage Dockerfile following security best practices (non-root user, minimal base image, layer caching optimization, .dockerignore recommendations). 2. **Kubernetes Manifests**: Create production-grade K8s configs including: - Deployment with resource limits, health checks (liveness/readiness/startup probes) - Service and Ingress configuration - HorizontalPodAutoscaler with custom metrics - ConfigMaps and Secrets management strategy - NetworkPolicies for pod-to-pod security 3. **CI/CD Pipeline**: Design a GitHub Actions (or GitLab CI) pipeline with: - Build, test, scan (Trivy/Snyk), push stages - Blue-green or canary deployment strategy - Automated rollback triggers - Environment promotion (dev -> staging -> prod) 4. **Observability Stack**: Recommend monitoring setup with Prometheus, Grafana, and alerting rules for SLOs. 5. **Cost Optimization**: Suggest resource right-sizing, spot instances usage, and cluster autoscaling configuration. Format everything as copy-paste ready YAML/Dockerfile snippets with inline comments explaining each decision.

Comments (0)

No comments yet. Be the first!

Rating

0 Rating

Log in to rate

Statistics

Rating 0.0 (0)
Bookmarked 0
Comments 0
The prompt has been copied to the clipboard.