Kubernetes

What the following block of lines does?

spec:
  replicas: 2
  selector:
    matchLabels:
      type: backend
  template:
    metadata:
      labels:
        type: backend
    spec:
      containers:
      - name: httpd-yup
        image: httpd

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

It defines a replicaset for Pods whose type is set to "backend" so at any given point of time there will be 2 concurrent Pods running.