Hello and welcome to the solution video for the practice tests where we are configuring resource limits
and requests for pods and covenants.
So for the first question a board named rabbit is deployed.
Identify DCP requirements set on the pod the pod is in the default namespace
so as you can see a pod has indeed been created for us called Rabbit now to identify the CPSU requirements.
We will use the cube CTO described command
if you scroll through to the container section you'll see that a container called zip use stress has
been created and within that you would see that there is a limited section for CPI and a request.
So the request in this case is one CPI and the limit as to CPI so for the part to be scheduled the minimum
requirements for the CPI u.
As for the worker to have at least one CPI so the correct answer here is 1
next.
We will delete the part
and we'll wait for the port to terminate while we do that for additional reference you can use equal
when it is documentation under the task section.
There is a section called Ask configure pots and containers and thus you'll find two subsections useful
one as a sign.
Memory resources to port and the other one as assigned CPR resources so in addition to the lectures.
This is a good source of reference for anything related to resource limits and requests so back to our
terminal looks like the port a rabbit has been deleted so let's check
now a new port has been deployed for us.
It's called Elephant identified the status.
Let's try and keep CDL get pods
and you can see that as in a crash loop back off state
if you see the reason it is out of memory killed and the state the last state US terminated
the status or am killed or if memory killed indicates that the port ran out of memory identify the memory
limit set on the port
so here you can see that the memory limit is 10
for the next question the elephant runs a process that consumes 15 MRI of memory.
Increase the limit of the elephant port to 20.
Delete and recreate the port if required do not modify anything else.
So the name is elephant.
The image name as peel Linux stress slash stress and the memory limit should be 20 so let's generate
the pod definition file using cubes it'll get hot and we'll use dash or Yama and redirected to a file
so in this case we are going to increase the memory limit to 20 let's delete the existing pod
and we will create the new pod once the current one has been terminated
and once we have the new port running usually describe command to make sure that the limit has indeed
increased.
So now it's 20
and the pod is now in a running state
delete the pod and wait for it to terminate
so that was the last question.
This is an easy enough lab and as I said before you can go through the reference documentation if you
want to get more information related to this topic.
Thank you for joining me in this video and I'll see you in the next one.