as an app dev/operator I can restart my workload #425
Labels
enhancement
New feature or request
MIGRATED-MIGRATED
Migrated to private repo
needs-design
needs-pm
needs-triage
WIP Issue
Description of problem
There are scenarios where a workload may need to be restarted in order for configuration changes to be instantiated.
For example, when there is a configuration change for the workload applied to
Spring Config Server
, the app would need to restart to consume and apply the new config itself.To get said config changes to get picked up currently someone must delete and recreate the workload, wait 'till the pod is replaced for some reason or 'till it gets auto-scaled to name a few.
Since time is always of the essence, providing controls to enabling restart at will in a straightforward way will be valuable.
Proposed solution (TBD)
Example
<Code snippets that illustrate the when/then blocks>
Describe alternatives to be considered
tanzu apps workload restart workload-name
(??possible to provide flags to control rollout strategy, all at once, sequential, batch size, etc...)kubectl rollout restart deploy/XYZ
uses akubectl.kubernetes.io/restartedAt
date insp.c.template.metadata.annotations
to trigger a rolling restart. We could certainly enable tanzu apps to do the same across both deployments and Knative Services (it would work the same for both).Additional context
Comment/concern to address from @paulcwarren:
The text was updated successfully, but these errors were encountered: