apiVersion: v1
kind: Pod
metadata:
  name: memory-test
  annotations:
    io.kubernetes.cri-o.TrustedSandbox: "false"
    io.kubernetes.cri.untrusted-workload: "true"
spec:
  containers:
  - name: memory-test-ctr
    image: polinux/stress
    resources:
      limits:
        memory: "${memory_size}"
      requests:
        memory: "100Mi"
    command: ["stress"]
    args: ["--vm", "1", "--vm-bytes", "${memory_allocated}", "--vm-hang", "1"]
