apiVersion: apps/v1
kind: ReplicaSet
metadata:
  name: my-replicaset
spec:
  replicas: 2
  selector:
    matchLabels:
      app: foo-bar
  template:
    metadata:
      labels:
        app: foo-bar
    spec:
      containers:
      - image: foobarapp:v1
        name: foo-bar-app
        ports:
        - containerPort: 80
        resources:
          requests:
            cpu: 100m
            memory: 100Mi
          limits:
            cpu: 100m
            memory: 100Mi
