ReplicaSet

apiVersion: apps/v1
kind: ReplicaSet
metadata:
  labels:
    app: myapp
  name: myreplicaset
spec:
  replicas: 2
  selector:
    matchLabels:
      app: myapp
  template:
    metadata:
      labels:
        app: myapp
    spec:
      containers:
      - name: nginx
        image: nginx

official documentation

Read more