Hi, In this page there is a limit range specified for containers. <https://kuber . . .

Mathi RS:
Hi, In this page there is a limit range specified for containers. https://kubernetes.io/docs/tasks/administer-cluster/manage-resources/memory-default-namespace/ … on the 2nd exercise when we set the limit range to 1Gi, it exceeds the quota of its assigned to its namespace. so will the pod will be given 1Gi or only the quota as per namespace is assigned though it has a limit set on its pod definition file. And if it allocates 1GB , will any other pods are allowed to run?

Mathi RS:
in the explantion it says like below, but i can still run another pod in the same namespace without any issue, though the demo-2 pod has 1Gi limit set and thats also running.
image.png

AB:
Check this
https://kubernetes.io/docs/tasks/administer-cluster/manage-resources/memory-constraint-namespace/

AB:
I think you will get a message like below

Error from server (Forbidden): error when creating "examples/admin/resource/memory-constraints-pod-2.yaml":
pods "constraints-mem-demo-2" is forbidden: maximum memory usage per Container is 1Gi, but limit is 1536Mi

Mathi RS:
i can see its running because both the containers together didn’t exceed the limit set on namespace. so its allowing to run until the limit is reached for the namespace.
image.png

Mathi RS:
since i have defined it as limit range for default, and not for max, min its allowing to run. if i changed to max and min it will throw error i believe