2

I am using openshift command oc new-app <git-url> [OPTIONS..] to add a new application into the openshift project.

As part of the process, it creates :

  • build config & starts the build
  • image stream
  • replication controller
  • deploy config & deploys the application

I do not intend to deploy the application instantly.

Is there a way to skip application from starting up a pod in Openshift, similar to cf push --no-start (in PCF)

snmaddula
  • 1,111
  • 1
  • 7
  • 21
  • 2
    Look at ``oc set triggers`` and disable the image change trigger. You can then enable the image change trigger later, or force a new rollout somehow using the newer image. – Graham Dumpleton Nov 11 '18 at 06:00

1 Answers1

3

If you only want to build the app but not deploy it, why not consider using oc new-build, see also the docs or have a look at this example.

Michael Hausenblas
  • 13,162
  • 4
  • 52
  • 66