github.com/castai/kvisor@v1.7.1-0.20240516114728-b3572a2607b5/demo/oom.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    name: omm
     5  spec:
     6    selector:
     7      matchLabels:
     8        app.kubernetes.io/name: omm
     9    replicas: 1
    10    template:
    11      metadata:
    12        labels:
    13          app.kubernetes.io/name: omm
    14      spec:
    15        containers:
    16          - name: stress
    17            image: polinux/stress
    18            resources:
    19              requests:
    20                memory: "50Mi"
    21              limits:
    22                memory: "100Mi"
    23            command: [ "stress" ]
    24            args: [ "--vm", "1", "--vm-bytes", "250M", "--vm-hang", "1" ]