-
Notifications
You must be signed in to change notification settings - Fork 302
Conversation
If unit file modified, can use "overwrite" command to update. First stop and remove the old unit, and submit the new unit and restore the status as the previous one. Fixes coreos#76
Name: "overwrite", | ||
Summary: "Overwrite one or more units in the cluster", | ||
Usage: "UNIT...", | ||
Description: `Overwrite one or more running or submitted units from the cluster. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace the description with this:
Overwrite stops (if needed), unload (if needed), and destroys, then submits, loads (if needed) and starts (if needed) the unit after replacing the unit file with that found on the local filesystem
@wuqixuan you don't actually have to wait for units to transition through the loaded state on teardown or startup if that isn't the desired final state. You can trust that fleet will drive units towards the desired state, regardless of what intermediate state there may be. |
@bcwaldon Can you merge this? The changes you've requested (last year) just deal with copy, and not functionality. I'm sure the people who really want/need restart (overwrite) capabilities can deal with some bad text. |
As a user of fleet, I think the primary use case here would be rolling update that didn't have to bring down each instance of a running container. If I have But having to |
To recap:
|
I've implemented bash based POC which works with the fleet v0.11.5. Didn't test it with templates. |
See also #1442 for a slightly different approach (regarding user interface) for this functionality, which seems worth considering. |
Per OOB discussion, let's proceed with a |
If unit file modified, can use "overwrite" command to update.
First stop and remove the old unit, and submit the new unit and restore
the status as the previous one.
Fixes #760