How do we do rolling restart?
See original GitHub issueHow do we do kubectl rollout restart deployment your_deployment_name ? I couldn’t locate appropriate documentation for this.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
What is a rolling restart of applications? - Stack Overflow
A rolling restart or ripplestart of applications is typically an operation that may be performed on applications that are deployed across ...
Read more >Perform a Rolling Restart of Servers - Oracle Help Center
You can initiate a rolling restart of all eligible servers in a domain, in selected clusters, or individual selected servers. A rolling restart...
Read more >Kubectl Rolling Restart - Linux Hint
Method 1: ... Rolling restart is utilized to resume every pod after deployment. For a rolling restart, we run the following command: After...
Read more >Rolling Restart | CDP Public Cloud - Cloudera Documentation
Go to the service you want to restart. · Do one of the following: · In the pop-up dialog box, select the options...
Read more >Can someone tell me what a rolling restart is? - GameFAQs
Rolling restart is a term for when you have a set of servers that need to be restarted, and you roll through them...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@nsubrahm-awsI believe the best way would be to use the
patch deploymentfunction and add a dummy annotation to thespec.template.metadata.annotationsblock. This should trigger the creation of a new replicaset and automatically handle the restart based on thestrategyspecified in the deployment spec. That is also whatkubectl rollout restart deploymentdoes behind the scenes. When you runkubectl rollout restart deployment, it adds akubectl.kubernetes.io/restartedAtannotation which contains a timestamp, like this one:For the record, I found it here in the
kubectlcodebase