What factors determine how much CPU and memory resources needs to be allocated to a single container ? In the video cpu: 0.2 was requested. But how did he come with this value ? Is it something related with capacity planning of a application ? Please someome explain this is layman’s term. I am new to this.
So similar to how you setup systems currently, so yup capacity planning. I get starting number either via load testing or by vendor recommendations you can identify the number of CPUs you need. From this you can set the request for your pod.
So the protection on picking too small is the configuration for auto scaling. By looking at the number of scaling events and pods running you can work out if you have picked a too small CPU request.
In the class example he selected 0.2 of a CPU for demonstration purposes, so it would be easy to cause enough load to force a scaling event.
much more detail here: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/