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
- Quick
- Centralized configuration
- Can target multiple iothubs
Cons
- Over-engineered
- K8s knowledge (learning curve)
Option 2
The second option is to write custom scripts that handle the deployment/rollback..
Pros
- Lightweight solution
- Free (no additional costs)
Cons
- Maintenance is hard.
- Slow Build time
- Bug prone
CodePudding user response:
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