graph BT; classDef highlight fill:#AFFC41,stroke:#141B41,stroke-width:2px; rs[ReplicaSet]--enables app declarative updates-->deployment[Deployment] deployment-.manages.->rs class deployment highlight
Deployment object manages application updates by creating revisions with ReplicaSet objects.
Currently it support two update strategies:
- RollingUpdate (default) - gradaully increase number of replicas with new version and decreases old instances until all all of them are running the latest, desired version
- Recreate - all old instances (pods) are killed before new ones are created