---
apiVersion: apps/v1
kind: ReplicaSet
metadata:
  name: whoami
spec:
  selector:
    matchLabels:
      app: whoami
      env: int
  replicas: 2
  template:
    metadata:
      labels:
        app: whoami
        env: int
    spec:
      containers:
        - image: containous/whoami:latest
          name: whoami
          ports:
            - name: main-port
              containerPort: 80
          readinessProbe:
            httpGet:
              path: /health
              port: 80