Question bug in learn-by-doing-kubernetes-policies-with-kyverno

In the Advanced Policy Creation with Kyverno section of learn-by-doing-kubernetes-policies-with-kyverno, the question seems to tell that Requests > limits, which is not possible,

Requests <= limits in a kubernetes setting, although when we create policy this is not checked, if you create a resource which violates Requests <= limits, you’ll get something similar to

The Pod "pod-resources-demo" is invalid: spec.containers[0].resources.requests: Invalid value: "100Mi": must be less than or equal to memory limit of 50Mi

Hi @zszazi

Thanks for pointing this out. It seems the words requests and limits need to be reversed in the question,

Did you try that in the lab?

On swapping the words, the answer is not accepted, so from kodekloud’s end, you have to change both the question and the accepted answer