For containers and pods, in the container's resource manifest in kubernetes you would specify a memory request for 46GB, for example,
spec:
containers:
- name: memory-demo-ctr
image: polinux/stress
resources:
limits:
memory: "200Mi"
requests:
memory: "100Mi"
More information at the following webpage,
https://kubernetes.io/docs/tasks/configure-pod-container/assign-memory-resource/
After having a look into the defaults, if no limits have been set, on the container or on the namespace, then there is no limit set.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…