Kubernetes · Resource
ReplicaSet
A ReplicaSet keeps a selected number of identical Pods running. Deployments usually manage ReplicaSets, but you can use one directly when you need simpler or custom control.
Last updated
Syntax
apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: <name>
spec:
replicas: <number>
selector:
matchLabels: <labels>
template:
metadata:
labels: <matching-labels>
spec: <pod-spec>In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
DeploymentHorizontalPodAutoscalerPodJobDaemonSetReplicationController