File: sample-ulimit-adjust.yaml

package info (click to toggle)
golang-github-containerd-nri 0.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,980 kB
  • sloc: makefile: 117; sh: 45
file content (23 lines) | stat: -rw-r--r-- 457 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
apiVersion: v1
kind: Pod
metadata:
  name: sleep
  annotations:
    ulimits.nri.containerd.io/container.sleep: |
      - type: memlock
        hard: 987654
        soft: 645321
      - type: RLIMIT_NOFILE
        hard: 4096
        soft: 1024
      - type: nproc
        hard: 9000
spec:
  containers:
  - name: sleep
    image: ubuntu:latest
    command:
    - /bin/bash
    - -c
    - "ulimit -a; ulimit -Ha; sleep inf"
  terminationGracePeriodSeconds: 3