From 92acb3871ba1a1ed2c7c8583f3ac6be4cc339f04 Mon Sep 17 00:00:00 2001 From: Michael Burke Date: Wed, 10 Feb 2021 18:05:51 -0500 Subject: [PATCH] unable to create pods after setting resources --- modules/deployments-setting-resources.adoc | 5 +++++ modules/nodes-cluster-resource-configure-about.adoc | 3 +++ 2 files changed, 8 insertions(+) diff --git a/modules/deployments-setting-resources.adoc b/modules/deployments-setting-resources.adoc index 6801b96a169d..2fa22caf14b5 100644 --- a/modules/deployments-setting-resources.adoc +++ b/modules/deployments-setting-resources.adoc @@ -7,6 +7,11 @@ A deployment is completed by a pod that consumes resources (memory, CPU, and ephemeral storage) on a node. By default, pods consume unbounded node resources. However, if a project specifies default container limits, then pods consume resources up to those limits. +[NOTE] +==== +The minimum memory limit for a deployment is 12 MB. If a container fails to start due to a `Cannot allocate memory` pod event, the memory limit is too low. Either increase or remove the memory limit. Removing the limit allows pods to consume unbounded node resources. +==== + You can also limit resource use by specifying resource limits as part of the deployment strategy. Deployment resources can be used with the recreate, rolling, or custom deployment strategies. .Procedure diff --git a/modules/nodes-cluster-resource-configure-about.adoc b/modules/nodes-cluster-resource-configure-about.adoc index db92674adf95..276fa905a3f9 100644 --- a/modules/nodes-cluster-resource-configure-about.adoc +++ b/modules/nodes-cluster-resource-configure-about.adoc @@ -44,6 +44,9 @@ Note the following about memory requests and memory limits: - The cluster administrator can assign quota or assign default values for the memory limit value. + - The minimum memory limit is 12 MB. If a container fails to start due to a `Cannot allocate memory` pod event, the memory limit is too low. +Either increase or remove the memory limit. Removing the limit allows pods to consume unbounded node resources. + [id="nodes-cluster-resource-configure-about-memory_{context}"] == Managing application memory strategy