There is a new Alpha feature gate PodLevelResources to accomplish this in 1.32
PodLevelResources
https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#example-2