You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most https://github.com/kubernetes/kubernetes/blob/release-1.11/pkg/kubelet/apis/kubeletconfig/v1beta1/types.go#L45[KubeletConfig Options] may be set by the user. The following options are not allowed to be overwritten:
159
-
160
-
* CgroupDriver
161
-
* ClusterDNS
162
-
* ClusterDomain
163
-
* RuntimeRequestTimeout
164
-
* StaticPodPath
165
-
166
-
[[admin-guide-max-pods-per-node]]
167
-
=== Setting maximum pods per node
168
-
169
-
////
170
-
The following section is included in the Scaling and Performance Guide.
171
-
////
172
-
// tag::admin_guide_manage_nodes[]
173
-
174
-
In the KubeletConfig, two parameters control the maximum number of pods that
175
-
can be scheduled to a node: `podsPerCore` and `maxPods`. When both options
176
-
are in use, the lower of the two limits the number of pods on a node.
177
-
Exceeding these values can result in:
178
-
179
-
* Increased CPU utilization on both {product-title} and Docker.
180
-
* Slow pod scheduling.
181
-
* Potential out-of-memory scenarios (depends on the amount of memory in the node).
182
-
* Exhausting the pool of IP addresses.
183
-
* Resource overcommitting, leading to poor user application performance.
184
-
185
-
[NOTE]
186
-
====
187
-
In Kubernetes, a pod that is holding a single container actually uses two
188
-
containers. The second container is used to set up networking prior to the
189
-
actual container starting. Therefore, a system running 10 pods will actually
190
-
have 20 containers running.
191
-
====
192
-
193
-
`podsPerCore` sets the number of pods the node can run based on the number of
194
-
processor cores on the node. For example, if `podsPerCore` is set to `10` on
195
-
a node with 4 processor cores, the maximum number of pods allowed on the node
196
-
will be 40.
197
-
198
-
----
199
-
spec:
200
-
kubeletConfig:
201
-
podsPerCore: 100
202
-
----
203
-
204
-
[NOTE]
205
-
====
206
-
Setting `podsPerCore` to 0 disables this limit.
207
-
====
208
-
209
-
`maxPods` sets the number of pods the node can run to a fixed value, regardless
210
-
of the properties of the node.
211
-
212
-
----
213
-
spec:
214
-
kubeletConfig:
215
-
maxPods: 250
216
-
----
217
-
218
-
Using the above example, the default value for `podsPerCore` is `10` and the
219
-
default value for `maxPods` is `250`. This means that unless the node has 25
220
-
cores or more, by default, `podsPerCore` will be the limiting factor.
0 commit comments