Skip to content
masterclass Buddy

DevOps · Concept

ReplicaSet

A ReplicaSet keeps a chosen number of matching Pods running. It uses a label selector and a Pod template, but a Deployment is usually the better object for managing ReplicaSets and updates.

Last updated

Syntax

apiVersion: apps/v1
kind: ReplicaSet
metadata:
  name: <name>
spec:
  replicas: <number>
  selector:
    matchLabels: <labels>
  template: <pod template>

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Deployment
  • Pod
  • HorizontalPodAutoscaler
  • ReplicaSetSpec
  • ReplicaSetStatus
  • ownerReferences

Source: ReplicaSet | Kubernetes. Checked 2026-11-03.