drone-kubernetes icon indicating copy to clipboard operation
drone-kubernetes copied to clipboard

Detecting failures

Open matteosuppo opened this issue 7 years ago • 5 comments

If I provide a missing image the deployment is sent to kubernetes, but it fails. Is there a way to detect that it failed?

matteosuppo avatar Sep 01 '17 13:09 matteosuppo

Perhaps a modification of the script to subsequently execute kubectl rollout status --watch on the deployment would work. I do this in my own scripts... but I don't recall if it provides machine-readable return codes when failures occur.

Ulexus avatar Sep 20 '17 17:09 Ulexus

With a quick check: yes, it appears a non-zero status code is returned when the rollout fails.

Ulexus avatar Sep 20 '17 17:09 Ulexus

This looks like an awesome addition, @MacTynow can review

Internally we've moved away from directly updating deployments in kubernetes and instead use Helm for release management (giving us powerful rollbacks - which include rollback of all resources related to a deployment such as configmaps / secrets / ... )

more details here - http://tech.honestbee.com/articles/devops/2017-07/drone-helm-repository

so0k avatar Sep 22 '17 00:09 so0k

I can understand that; I just find Helm to be too bureaucratic for my tastes.

Ulexus avatar Sep 22 '17 01:09 Ulexus

hello any update ?

mmaryo avatar Aug 07 '19 14:08 mmaryo