<aside> ⛔ Newer and better way to manage replicated pods in K8s than Replication Controllers

</aside>

Config YAML file

apiVersion: apps/v1
kind: ReplicaSet
metadata:
  name: httpd-frontend
  labels:
    name: frontend
spec:
  replicas: 3
  selector:
    matchLabels:
      name: frontend
  template:
    metadata:
      labels:
        name: frontend
    spec:
      containers:
      - name: httpd
        image: httpd:2.4-alpine

Scaling the number of replicas