-
Notifications
You must be signed in to change notification settings - Fork 890
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there any plan to support sidecarContainers #5745
Comments
Glad to contribute if it's acceptable. |
/assign |
Can you give an example to explain the gaps we currently have? As far as I know, resource interpreters already consider sidecar containers when determining resource requirements. karmada/pkg/util/helper/binding.go Lines 385 to 405 in 38ee277
|
Seems the func |
Oh, I see. Thanks for the reminder, that makes sense to me. PS:
|
A little question need to be cleared, what if the featuregate of sidecareContaiener is enabled in karmada control plan but is disabled in member cluster or vice versa, to put it simply, the replicas calculation is not consistent between control plane and members. How does karmdada solve the problem of inconsistent featuregate switches? |
What would happen if we deploy a Deployment with sidecar container to a cluster where the |
Sidecarcontainer is a special init container but will run last forever with main container, the pod request computation result is different with Sidecarcontainer disabled and enabled, it will affect scheduling result, if the SidecarContainers is enaled in control plane, the pod request resources computation result in control plane will be larger than in member clusters with SidecarContainers disabled, and the first level of scheduling may think the pod is not schedulable but actually it can be scheduled in member cluster. And if Sidecarcontainer is disabled in control plane while enabled in member cluster, the pod maybe schedulable but actually it cann't be schedulable in member cluster. |
What would you like to be added:
Add sidecarContainers support when compute
resource requirements
in resourceInterpreter.Why is this needed:
sidecarContainer has been a beta feature and enabled by default in k8s v1.29, we should also support it to get a more accurate resources requirement. xrefs: https://kubernetes.io/docs/concepts/workloads/pods/sidecar-containers/
The text was updated successfully, but these errors were encountered: