question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How do we do rolling restart?

See original GitHub issue

How do we do kubectl rollout restart deployment your_deployment_name ? I couldn’t locate appropriate documentation for this.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

10reactions
moshevaynercommented, Feb 15, 2021

@nsubrahm-awsI believe the best way would be to use the patch deployment function and add a dummy annotation to the spec.template.metadata.annotations block. This should trigger the creation of a new replicaset and automatically handle the restart based on the strategy specified in the deployment spec. That is also what kubectl rollout restart deployment does behind the scenes. When you run kubectl rollout restart deployment, it adds a kubectl.kubernetes.io/restartedAt annotation which contains a timestamp, like this one:

apiVersion: apps/v1
kind: Deployment
spec:
  template:
    metadata:
      annotations:
        kubectl.kubernetes.io/restartedAt: "2021-02-15T11:12:54-05:00"
4reactions
moshevaynercommented, Mar 1, 2021

For the record, I found it here in the kubectl codebase

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found