apiVersion: apps/v1
kind: Deployment
metadata:
  name: hpa-test
spec:
  selector:
    matchLabels:
      app: hpa
  template:
    metadata:
      labels:
        app: hpa
    spec:
      containers:
        - name: stress
          image: polinux/stress
          resources:
            requests:
              memory: 50Mi
              cpu: 100m
            limits:
              memory: 75Mi
              cpu: 110m
          command: ["stress"]
          args: ["--vm", "11", "--vm-bytes", "5M", "--vm-hang", "1", "--vm-keep"]