Answer the question
In order to leave comments, you need to log in
How to detect deployment status in OpenShift?
Through CD toolza, the application is deployed to openshift through
oc process template.yaml | oc apply -f -
In the deployconfig template with the new image. imagestream is not used, the pull is already done during deployment.
Actually, the question is how, after this command, to reliably and simply track the status of this particular deployment?
So far, I have settled on the fact that a restapi for the version has been added to the application, and I just wait 3 minutes in the loop for the version to match the required one. If it still does not match after 3 minutes, I think that the deployment has failed.
What other options are there?
* Monitor logs (events)? Not sure if this is a reliable option, although it's possible..
* View pod status before and after? It is inconvenient, when scaling there can be many of them.
* more versions?
Used udeploy with console oc and openshift
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question