0

I have a template.yaml, dockerfile and myproject.jar . How can I deploy an application in a minishift? I've tried,

oc create -f template.yaml
oc new-app java-app-sample -p APP_NAME=app-sample

but I'm not sure it's right

Violetta
  • 509
  • 4
  • 12
  • You may need to put a namespace before `java-app-sample`. I thought the `java-app-sample` is a template you defined above. Commonly, OpenShift complements `openshift` namespace if a user doesn't specify namespace in front of template name. So you should write like this `oc new-app /java-app-sample -p APP_NAME=app-sample`. – hiroyukik Feb 25 '23 at 05:26

0 Answers0