@@ -283,17 +283,15 @@ For more information on how these two settings work together, see [the memory cg
283283** ` memory ` ** (object, OPTIONAL) represents the cgroup subsystem ` memory ` and it's used to set limits on the container's memory usage.
284284For more information, see [ the memory cgroup man page] [ cgroup-v1-memory ] .
285285
286- The following parameters can be specified to setup the controller:
287-
288- * ** ` limit ` ** * (uint64, OPTIONAL)* - sets limit of memory usage in bytes
289-
290- * ** ` reservation ` ** * (uint64, OPTIONAL)* - sets soft limit of memory usage in bytes
291-
292- * ** ` swap ` ** * (uint64, OPTIONAL)* - sets limit of memory+Swap usage
286+ Values for memory specify the limit in bytes, or ` -1 ` for unlimited memory.
293287
294- * ** ` kernel ` ** * (uint64, OPTIONAL)* - sets hard limit for kernel memory
288+ * ** ` limit ` ** * (int64, OPTIONAL)* - sets limit of memory usage
289+ * ** ` reservation ` ** * (int64, OPTIONAL)* - sets soft limit of memory usage
290+ * ** ` swap ` ** * (int64, OPTIONAL)* - sets limit of memory+Swap usage
291+ * ** ` kernel ` ** * (int64, OPTIONAL)* - sets hard limit for kernel memory
292+ * ** ` kernelTCP ` ** * (int64, OPTIONAL)* - sets hard limit for kernel TCP buffer memory
295293
296- * ** ` kernelTCP ` ** * (uint64, OPTIONAL) * - sets hard limit in bytes for kernel TCP buffer memory
294+ For ` swappiness ` the values are from 0 to 100. Higher means more swappy.
297295
298296* ** ` swappiness ` ** * (uint64, OPTIONAL)* - sets swappiness parameter of vmscan (See sysctl's vm.swappiness)
299297
@@ -304,8 +302,8 @@ The following parameters can be specified to setup the controller:
304302 "limit" : 536870912 ,
305303 "reservation" : 536870912 ,
306304 "swap" : 536870912 ,
307- "kernel" : 0 ,
308- "kernelTCP" : 0 ,
305+ "kernel" : -1 ,
306+ "kernelTCP" : -1 ,
309307 "swappiness" : 0
310308 }
311309```
0 commit comments