What's the imperative command to setup requests and limits for pods

Nikhil Rajan:
What’s the imperative command to setup requests and limits for pods

Vikas Ray:
kubectl run foobar --image=nginx --requests=cpu=100m,memory=256Mi–dry-run=client -o yaml

I think if you replaces the requests with limits, it should work, but do give it a try and let me know