Challenge, Medium,  on  Kubernetes

Troubleshoot Pod Manifest Deployment Failure Due to Resource Constraints

Scenario

A Pod manifest is located at /home/laborant/prod-web.yaml. Deploy the Pod into the prod namespace.

The Pod manifest fails to deploy the Pod due to resource constraint violations, as the namespace enforces ResourceQuota and LimitRange policies.

Investigate the cause by examining these policies, then update the manifest so it complies with the namespace constraints and successfully deploy the Pod.

Constraints:

  • Do NOT modify container images
  • Do NOT modify container commands
  • Only adjust resource requests and limits

Hint

Check LimitRange constraints, examine current resource values in the manifest, adjust both init container and main container resources to be within max limits (200m CPU, 256Mi memory per container).


Test Cases