The Scenario
The company is moving to Kubernetes (K8s). They need to deploy the main `billing-api` container. It needs to have 3 replicas running at all times across different nodes, scale up if CPU usage hits 80%, and safely recover if a pod crashes.
The Brief
Write the Kubernetes YAML manifests for the `billing-api`. You will need a `Deployment`, a `Service` (ClusterIP), and an `HorizontalPodAutoscaler` (HPA). Define Liveness and Readiness probes to handle crashes.
Deliverables
- The K8s YAML manifests (`deployment.yaml`, `service.yaml`, `hpa.yaml`)
- An explanation of the difference between a Liveness Probe and a Readiness Probe
Submission Guidance
You don't need a running K8s cluster; focus on the declarative syntax. Ensure your deployment specifies CPU/Memory limits so the HPA can function.
Submit Your Work
Your submission is graded against the rubric on the right. If you pass, you get a public Badge URL you can share on LinkedIn. There is no draft save, so work offline first and paste your finished response here.