A Container can exceed its memory request [...]. If a Container allocates more memory than its limit, the Container becomes a candidate for termination.
From the documentation I understand setting resource limits can't limit the pod's memory usage.
I have a container that will always use up all the memory available to it, but will function also with smaller amounts of memory. Is there any way I can set a hard limit to the amount of memory available to the pod running the container?
Since it is possible in Docker I hope there is also a way to achieve this in Kubernetes, but I could not find a way to do this.