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

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

Peter Bacsko created YUNIKORN-2475:
--------------------------------------

             Summary: 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


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.




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

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