Skip to content

FAQ

Frequently asked: Deployment vs ReplicaSet, how to rollback, and whether it works for stateful apps.

Deployment vs ReplicaSet?

A Deployment owns one or more ReplicaSets (one per revision). You almost never interact with a ReplicaSet directly.

How do I rollback?

kubectl rollout undo deployment/name. Reverts to the previous ReplicaSet.

Does it work for databases?

No. Use StatefulSet. Deployments assume ephemeral Pod identity.

What is maxSurge/maxUnavailable?

Controls how aggressive the rolling update is. maxSurge: 1, maxUnavailable: 0 = safest, slowest.