In OpenShift CLI, how can I define the memory size within the oc new-app
command?
Asked
Active
Viewed 264 times
0

Thisara Watawana
- 344
- 4
- 15
1 Answers
1
I do not think that oc new-app
allows you to specify this on the command line. So your best bet would be to use oc new-app
and then use oc patch
to edit the created Deployment.
Alternatively, you can use oc run
to start a single Pod, with that command you can actually specify --limits
and --requests
, but that is probably not what you want:
oc run ruby-hello-world --image=ruby-hello-world --limits=cpu=200m,memory=400Mi --requests=cpu=100m,memory=200Mi

Simon
- 4,251
- 2
- 24
- 34
-
I'm trying to create a new app using s2i build process. I have an image in dockerhub. During the assemble process I get an OOM kill due to a memory issue. – Thisara Watawana Jan 01 '21 at 18:22