View and manage Kubernetes ReplicaSets that maintain pod replicas
ReplicaSets ensure a specified number of pod replicas are running at any time. They are typically managed by Deployments rather than created directly, but you can view, scale, and manage them when needed.
Click the actions menu (three dots) on the ReplicaSet row.
3
Click Scale
Select Scale to open the scale dialog.
4
Set Replica Count
Enter the desired number of replicas.
5
Apply
Click Scale to apply the change.
If the ReplicaSet is managed by a Deployment, scaling the ReplicaSet directly may be overridden by the Deployment controller. Scale the parent Deployment instead for persistent changes.
Click the Create ReplicaSet button in the page header.
2
Write YAML
Enter the ReplicaSet manifest in YAML format.
3
Select Namespace
Choose the target namespace for the ReplicaSet.
4
Create
Click Create to apply the manifest.
For most use cases, create a Deployment instead of a ReplicaSet directly. Deployments provide rolling updates, rollback capabilities, and better lifecycle management.
If the ReplicaSet is managed by a Deployment, it will be automatically recreated. Delete the parent Deployment instead to permanently remove the ReplicaSet.
Deployments are the recommended way to manage stateless applications. They create and manage ReplicaSets automatically, providing additional features like rolling updates and rollbacks.
Generally no. Use Deployments instead, which manage ReplicaSets and provide additional features like rolling updates and rollbacks. Direct ReplicaSet creation is only needed for specific use cases.
Why are there multiple ReplicaSets for one Deployment?
Each time you update a Deployment’s pod template, a new ReplicaSet is created. Old ReplicaSets are kept (scaled to 0) for rollback capability. The number retained is controlled by revisionHistoryLimit.
Can I restart pods in a ReplicaSet?
ReplicaSets don’t have a built-in restart mechanism. Delete pods to have them recreated, or if managed by a Deployment, use the Deployment’s restart feature.
What happens if I scale a Deployment-managed ReplicaSet?
The Deployment controller will detect the change and revert it to match the Deployment’s replica count. Always scale the Deployment instead.
How do I identify which Deployment owns a ReplicaSet?
Check the “Controlled By” column or the owner references in the ReplicaSet details. The ReplicaSet name usually includes the Deployment name as a prefix.
Why is my ReplicaSet showing 0/0 replicas?
This is normal for old ReplicaSets after a Deployment update. The Deployment scales down old ReplicaSets to 0 but keeps them for rollback history.
Can I update the pod template in a ReplicaSet?
Yes, but existing pods won’t be updated. Only new pods (created due to scaling or pod deletion) will use the new template. Use Deployments for proper rolling updates.