apiVersion: apps/v1
kind: StatefulSet
metadata:
  labels:
    app: myapp
  name: myapp
  namespace: scheduler-test
spec:
  replicas: 2
  selector:
    matchLabels:
      app: myapp
  serviceName: dummy-peer
  template:
    metadata:
      labels:
        app: myapp
      annotations:
        test-infra.pingcap.net/max-replicas: "3"
    spec:
      schedulerName: test-infra-scheduler
      containers:
        - image: alpine
          name: node
          resources:
            requests:
              memory: "32Mi"
              cpu: "100m"
          command:
            - tail
            - "-f"
            - "/dev/null"
