You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "Peter Bacsko (Jira)" <ji...@apache.org> on 2024/03/11 10:59:00 UTC

[jira] [Updated] (YUNIKORN-2475) Add support for K8s native sidecars (restartable init containers)

     [ https://issues.apache.org/jira/browse/YUNIKORN-2475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Bacsko updated YUNIKORN-2475:
-----------------------------------
    Description: 
K8s v1.28 added support for [native sidecars|https://kubernetes.io/blog/2023/08/25/native-sidecar-containers/]. This introduces restartable init containers, eg. init containers that keep running along with the main ones.

The changes resource request calculations. A [helper method|https://github.com/kubernetes/kubernetes/blob/c73ab5162b43356414908d7260fea29af6d4be1e/pkg/api/v1/resource/helpers.go#L50)]  in the K8s codebase is available for resource calculations. However, this seems to be too complicated and inefficient.

Our options are:
1. Change our [existing code|https://github.com/apache/yunikorn-k8shim/blob/3327a6806b30d8c857b3516916491c86f5954f87/pkg/common/resource.go#L54] in the shim and update our unit tests.
2. Re-use the {{GetPodResources()}} function from K8s.

If we keep our own code, I recommend that we create unit tests that perform comparison between the two.


  was:
K8s v1.28 added support for [native sidecars|https://kubernetes.io/blog/2023/08/25/native-sidecar-containers/]. This introduces restartable init containers, eg. init containers that keep running along with the main ones.

The changes resource request calculations. A [helper method|https://github.com/kubernetes/kubernetes/blob/c73ab5162b43356414908d7260fea29af6d4be1e/pkg/api/v1/resource/helpers.go#L50)]  in the K8s codebase is available for resource calculations. However, this seems to be too complicated and inefficient.

Our options are:
1. Change our existing code in the shim with the necessary changes.
2. Re-use the {{GetPodResources()}} function from K8s.

If we keep our own code, I recommend that we create unit tests that perform comparison between the two.



> Add support for K8s native sidecars (restartable init containers)
> -----------------------------------------------------------------
>
>                 Key: YUNIKORN-2475
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-2475
>             Project: Apache YuniKorn
>          Issue Type: Improvement
>          Components: shim - kubernetes
>            Reporter: Peter Bacsko
>            Assignee: Peter Bacsko
>            Priority: Major
>
> K8s v1.28 added support for [native sidecars|https://kubernetes.io/blog/2023/08/25/native-sidecar-containers/]. This introduces restartable init containers, eg. init containers that keep running along with the main ones.
> The changes resource request calculations. A [helper method|https://github.com/kubernetes/kubernetes/blob/c73ab5162b43356414908d7260fea29af6d4be1e/pkg/api/v1/resource/helpers.go#L50)]  in the K8s codebase is available for resource calculations. However, this seems to be too complicated and inefficient.
> Our options are:
> 1. Change our [existing code|https://github.com/apache/yunikorn-k8shim/blob/3327a6806b30d8c857b3516916491c86f5954f87/pkg/common/resource.go#L54] in the shim and update our unit tests.
> 2. Re-use the {{GetPodResources()}} function from K8s.
> If we keep our own code, I recommend that we create unit tests that perform comparison between the two.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: issues-help@yunikorn.apache.org