apiVersion: apps/v1
kind: ReplicaSet

metadata:
  name: frontend
  labels:
    app: my-nginx
    tier: frontend

spec:
  replicas: 2

  selector:
    matchLabels:
      tier: frontend

  template:
    metadata:
      labels:
        tier: frontend
    spec:
      containers:
      - name: my-nginx
        image: nginx:alpine
        resources:
          limits:
            memory: "128Mi" #128 MB
            cpu: "200m" #200 millicpu (.2 cpu or 20% of the cpu)
