Skip to Content
Hands-On Microservices with Kubernetes
book

Hands-On Microservices with Kubernetes

by Gigi Sayfan
July 2019
Intermediate to advanced
502 pages
14h
English
Packt Publishing
Content preview from Hands-On Microservices with Kubernetes

Rolling updates

The default deployment strategy is RollingUpdate:

$ kubectl get deployment social-graph-manager -o yaml | grep strategy -A 4   strategy:     rollingUpdate:       maxSurge: 25%       maxUnavailable: 25%     type: RollingUpdate

Rolling updates work as follows: the total number of pods (old and new) is going to be the current replica count, plus the max surge. The deployment controller will start replacing old pods with new pods, making sure not to exceed the limit. The max surge can be an absolute number, such as 4, or a percentage, such as 25%. For example, if the number of replicas for the deployment is 4 and the max surge is 25%, then an additional new pod can be added, and one of the old pods can be terminated. maxUnavailable is the number of ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Kubernetes Microservices

Kubernetes Microservices

Richard Chesterwood
Cloud Native DevOps with Kubernetes

Cloud Native DevOps with Kubernetes

John Arundel, Justin Domingus
Microservices: Up and Running

Microservices: Up and Running

Ronnie Mitra, Irakli Nadareishvili

Publisher Resources

ISBN: 9781789805468Supplemental Content