I believe the ECS runconfig imposes stricter limits on the values you can input, the
Kubernetes runconfig should be able to support anything you'd be able input in a yaml file if you were creating the job-template by hand, i.e. if there are limits to the allowable memory specifications it would be found in Kubernetes documentation but as far as I know I don't believe there is.