Set requests and limits for OpenShift resource imperatively

The oc set resources command can be used to update a deployment requests and limits:

oc set resources deployment testd --requests cpu=100m,memory=256Mi --limits cpu=200m,memory=512Mi
This is applicable to other resources too: deployment config, replica set, replication controller, stateful set.

Alternatively, you can edit the resource yaml with requests and limits with oc edit command