@@ -402,7 +402,7 @@ kubeletArguments:
402
402
- "80"
403
403
----
404
404
405
- <1> Number of pods that can run on this kubelet.
405
+ <1> xref:../admin_guide/manage_nodes.adoc#admin-guide-max-pods-per-node[Maximum number of pods that can run on this kubelet] .
406
406
<2> Resolver configuration file used as the basis for the container DNS
407
407
resolution configuration.
408
408
<3> The percent of disk usage after which image garbage collection is always run.
@@ -427,6 +427,42 @@ openshift_node_kubelet_args={'max-pods': ['40'], 'resolv-conf': ['/etc/resolv.co
427
427
----
428
428
====
429
429
430
+ [[admin-guide-max-pods-per-node]]
431
+ === Setting Maximum Pods Per Node
432
+
433
+ In the *_/etc/origin/node/node-config.yaml_* file, two parameters control the
434
+ maximum number of pods that can be scheduled to a node: `pods-per-core` and
435
+ `max-pods`. When both options are in use, the lower of the two limits the number
436
+ of pods on a node.
437
+
438
+ `pods-per-core` sets the number of pods the node can run based on the number of
439
+ processor cores on the node. For example, if `pods-per-core` is set to `10` on
440
+ a node with 4 processor cores, the maxiumum number of pods allowed on the node
441
+ will be 40.
442
+
443
+ ====
444
+ ----
445
+ kubeletArguments:
446
+ pods-per-core:
447
+ - 10
448
+ ----
449
+ ====
450
+
451
+ `max-pods` sets the number of pods the node can run to a fixed value, regardless
452
+ of the properties of the node.
453
+
454
+ ====
455
+ ----
456
+ kubeletArguments:
457
+ max-pods:
458
+ - 250
459
+ ----
460
+ ====
461
+
462
+ Using the above example, the default value for `pods-per-core` is `10` and the
463
+ default value for `max-pods` is `250`. This means that unless the node has 25
464
+ cores or more, by default, `pods-per-core` will be the limiting factor.
465
+
430
466
[[manage-node-change-node-traffic-interface]]
431
467
== Changing Node Traffic Interface
432
468
0 commit comments