Mehdi Benmoha
Mehdi Benmoha

Reputation: 3935

Rollback strategy for iotedge device in iothub

Context

The current IotEdge deployment is missing a crucial component which is a rollback strategy, while searching in the documentation, nothing specifies how we can get the devices to a previous version.

There's 2 options I considered through my journey of searching for a solution, which one would you opt for and how are you handling this situation ?

Option 1

Use kubernetes to manage IotEdge deployments, which is in my opinion over-engineered and not intended for managing only deployment, as K8s is an orchestrator with many useful components not essentially made for such scenarios (or am I wrong ?).

Pros

Cons


Option 2

The second option is to write custom scripts that handle the deployment/rollback..

Pros

Cons

Upvotes: 1

Views: 226

Answers (1)

Helikaon
Helikaon

Reputation: 1508

If you want to rollback a deployment you should just delete the current one and IoT Edge will rollback to the previous deployment targeting it. To be clear, I am talking about deployments at scale

EDIT: Instead of deleting the deployment, just modify the target condition, that can prevent from a misclick. See the rollback deployment official documentation

Upvotes: 1

Related Questions