Skip to content

Commit

Permalink
kaps: add cpu and memory resources in container config file example
Browse files Browse the repository at this point in the history
Signed-off-by: Hugo Amalric <[email protected]>

kaps: delete unused file
  • Loading branch information
hugoamalric committed May 2, 2022
1 parent 853b3b0 commit 1802ece
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 20 deletions.
19 changes: 0 additions & 19 deletions container/src/cgroups.rs

This file was deleted.

19 changes: 18 additions & 1 deletion hack/fixtures/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,23 @@
"/proc/irq",
"/proc/sys",
"/proc/sysrq-trigger"
]
],
"resources": {
"cpu": {
"shares": 1024,
"quota": 1000000,
"period": 500000,
"realtimeRuntime": 950000,
"realtimePeriod": 1000000
},
"memory": {
"limit": 536870912,
"reservation": 536870912,
"kernel": -1,
"kernelTCP": -1,
"swappiness": 0,
"disableOOMKiller": false
}
}
}
}

0 comments on commit 1802ece

Please sign in to comment.