How to limit root disk space for pod?

I have pod deployed on a node with 600gb volume. I only want a pod to have 50gb root disk space.

So I have such config in deployment.yaml:

          limits:
            ephemeral-storage: "50G"

But when I entered the container, I found that all the disk space was allocated to the container

root@dbe9716daf8890-64fcccfc8-l4vph:/workspace# df -Th
Filesystem     Type     Size  Used Avail Use% Mounted on
overlay        overlay  662G  484G  145G  77% /
tmpfs          tmpfs     64M     0   64M   0% /dev
tmpfs          tmpfs    221G     0  221G   0% /sys/fs/cgroup
/dev/sda4      ext4     662G  484G  145G  77% /etc/hosts
shm            tmpfs     64M  4.0K   64M   1% /dev/shm
tmpfs          tmpfs     20G   12K   20G   1% /run/secrets/kubernetes.io/serviceaccount
tmpfs          tmpfs    221G   12K  221G   1% /proc/driver/nvidia
tmpfs          tmpfs    221G     0  221G   0% /proc/asound
tmpfs          tmpfs    221G     0  221G   0% /proc/acpi
tmpfs          tmpfs    221G     0  221G   0% /proc/scsi
tmpfs          tmpfs    221G     0  221G   0% /sys/firmware

I’m hoping to find a way to keep the space seen by the df command consistent with the limit value I set