From b23c499c2398110207649a7276e73ce3e70b59a3 Mon Sep 17 00:00:00 2001 From: lakshmi Date: Mon, 11 Dec 2023 17:33:21 +0530 Subject: [PATCH] Revise details for Resource sharing within containers --- .../docs/concepts/workloads/pods/init-containers.md | 2 +- .../concepts/workloads/pods/sidecar-containers.md | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/content/en/docs/concepts/workloads/pods/init-containers.md b/content/en/docs/concepts/workloads/pods/init-containers.md index e9e1b748abfb7..480d4cee80b9e 100644 --- a/content/en/docs/concepts/workloads/pods/init-containers.md +++ b/content/en/docs/concepts/workloads/pods/init-containers.md @@ -362,4 +362,4 @@ Learn more about the following: * [Debug init containers](/docs/tasks/debug/debug-application/debug-init-containers/). * Overview of [kubelet](/docs/reference/command-line-tools-reference/kubelet/) and [kubectl](/docs/reference/kubectl/). * [Types of probes](/docs/concepts/workloads/pods/pod-lifecycle/#types-of-probe): liveness, readiness, startup probe. -* [Sidecar containers](/docs/concepts/workloads/pods/sidecar-containers). \ No newline at end of file +* [Sidecar containers](/docs/concepts/workloads/pods/sidecar-containers). diff --git a/content/en/docs/concepts/workloads/pods/sidecar-containers.md b/content/en/docs/concepts/workloads/pods/sidecar-containers.md index 6d36283add31b..a1f5a9fbb8fc9 100644 --- a/content/en/docs/concepts/workloads/pods/sidecar-containers.md +++ b/content/en/docs/concepts/workloads/pods/sidecar-containers.md @@ -101,14 +101,16 @@ for resource usage apply: * The highest of any particular resource request or limit defined on all init containers is the *effective init request/limit*. If any resource has no resource limit specified this is considered as the highest limit. -* The Pod's *effective request/limit* for a resource is the higher of: - * the sum of all app containers request/limit for a resource +* The Pod's *effective request/limit* for a resource is the sum of +[pod overhead](/docs/concepts/scheduling-eviction/pod-overhead/) and the higher of: + * the sum of all non-init containers(app and sidecar containers) request/limit for a + resource * the effective init request/limit for a resource * Scheduling is done based on effective requests/limits, which means init containers can reserve resources for initialization that are not used during the life of the Pod. * The QoS (quality of service) tier of the Pod's *effective QoS tier* is the - QoS tier for init containers and app containers alike. + QoS tier for all init, sidecar and app containers alike. Quota and limits are applied based on the effective Pod request and limit. @@ -120,4 +122,5 @@ limit, the same as the scheduler. * Read a blog post on [native sidecar containers](/blog/2023/08/25/native-sidecar-containers/). * Read about [creating a Pod that has an init container](/docs/tasks/configure-pod-container/configure-pod-initialization/#create-a-pod-that-has-an-init-container). -* Learn about the [types of probes](/docs/concepts/workloads/pods/pod-lifecycle/#types-of-probe): liveness, readiness, startup probe. \ No newline at end of file +* Learn about the [types of probes](/docs/concepts/workloads/pods/pod-lifecycle/#types-of-probe): liveness, readiness, startup probe. +* Learn about [pod overhead](/docs/concepts/scheduling-eviction/pod-overhead/).