apiVersion: apps/v1
kind: ReplicaSet
metadata:
  name: myapp-replicaset
  labels:
     app: myapp
     type: front-end

spec:

 replicas: 3
 selector:
   matchLabels:
     app: myapp
 template:
    metadata:
      name: myapp-pod
      labels:
        app: myapp
        type: front-end
    spec:
      containers:
      -  name: nginx-container
         image: nginx


