How to solve this questtion

How to solve this question

you manage a WordPress application. Some of pods are not up and running. Adjust all pods resource request as follow

1… Divide nodes resources evenly across all 3 pods
2… give each pod fair share of CPU and memory
3… add enough overhead to keep the node stable
4… note… use exact for both containers and init containers. scale down WordPress deployment to 0 replicas while updating the resources request.

Look at the resources available to the node

kubectl describe node <node-name>

Look at what resources are starved on the pending pod(s). It will show in the events

kubectl describe pod <name-of-pending-pod>

If it’s memory then that’s what you must adjust, else CPU

Divide the total amount of resource available to the node by the number of pods. Set the value you got (or a bit less) under the appropriate resources.requests

So if the node has 1000m of CPU available, and you have 5 replicas in the deployment, then the pod spec must not request more than 200m of CPU.