You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@AkihiroSuda thanks for pointing that out, these changes make sense. But please keep in mind that they are not required by Sysbox to host K8s clusters (Sysbox already handles K8s sysctl write attempts). You can easily test it yourself by looking at this KinD fork (with very minimal changes) that we created as a prototype.
@felipecrs : sysbox would not enhance kind performance; it's benefits would mainly be functional, such as:
Removing the need for using privileged containers for the K8s node containers (i.e., enhancing isolation between the k8s node containers and the host).
Since sysbox does partial emulation of /proc and will support emulation of /proc/cpuinfo and /proc/meminfo in the near future, this enables the K8s scheduler running inside the kind cluster to better schedule workloads according to the resources consumed by each k8s node container. This is helpful in scenarios where users want more realistic scheduling in the kind cluster.
An additional benefit would be that sysbox removes the need for many of the actions taken in the KinD entrypoint script, but it's not clear to me that KinD would be able to take advantage of this given that it has to support the OCI runc which does require the entrypoint.
Finally, sysbox has some optimizations that save a lot of disk space when the inner containers/pods are spawned by running K8s + Docker inside the container. But KinD nodes use containerd only (not Docker) inside the container, and thus said optimizations don't apply.
Thank you so much @ctalledo for the great explanation.
I was asking because we have a very resource consumer CI which install many applications in a KinD cluster, so any kind of optimization would be welcome.
Despite that, the benefits that sysbox brings already worth it.
Still no cycles on Nestybox's side to help integrate KinD with Sysbox unfortunately. If anyone else has the desire and cycles we would be happy to assist.
Activity
BenTheElder commentedon Aug 7, 2020
we should also probe docker to see if sysbox is the default runtime and gracefully handle that.
ctalledo commentedon Aug 7, 2020
Thanks for opening the issue Ben, I will be glad to help add support for Sysbox in KinD.
cc @rmolina
rodnymolina commentedon Aug 8, 2020
Thanks @BenTheElder, will look into KIND_EXPERIMENTAL_RUNTIME approach.
AkihiroSuda commentedon Aug 11, 2020
Likely to require kubernetes/kubernetes@db0c4cb and kubernetes/kubernetes@503cff0 (https://github.com/kubernetes/kubernetes/pull/92863/commits), as sysbox uses user namespaces
rodnymolina commentedon Aug 11, 2020
@AkihiroSuda thanks for pointing that out, these changes make sense. But please keep in mind that they are not required by Sysbox to host K8s clusters (Sysbox already handles K8s sysctl write attempts). You can easily test it yourself by looking at this KinD fork (with very minimal changes) that we created as a prototype.
felipecrs commentedon Sep 6, 2020
Do we have numbers to compare how
sysboxcan enhancekindperformance?ctalledo commentedon Sep 7, 2020
@felipecrs : sysbox would not enhance kind performance; it's benefits would mainly be functional, such as:
Removing the need for using privileged containers for the K8s node containers (i.e., enhancing isolation between the k8s node containers and the host).
Since sysbox does partial emulation of /proc and will support emulation of /proc/cpuinfo and /proc/meminfo in the near future, this enables the K8s scheduler running inside the kind cluster to better schedule workloads according to the resources consumed by each k8s node container. This is helpful in scenarios where users want more realistic scheduling in the kind cluster.
An additional benefit would be that sysbox removes the need for many of the actions taken in the KinD entrypoint script, but it's not clear to me that KinD would be able to take advantage of this given that it has to support the OCI runc which does require the entrypoint.
Finally, sysbox has some optimizations that save a lot of disk space when the inner containers/pods are spawned by running K8s + Docker inside the container. But KinD nodes use containerd only (not Docker) inside the container, and thus said optimizations don't apply.
felipecrs commentedon Sep 7, 2020
Thank you so much @ctalledo for the great explanation.
I was asking because we have a very resource consumer CI which install many applications in a KinD cluster, so any kind of optimization would be welcome.
Despite that, the benefits that
sysboxbrings already worth it.ctalledo commentedon Mar 7, 2021
Unfortunately I haven't had cycles to dedicate to integrating KinD with sysbox-runc yet.
ctalledo commentedon Apr 13, 2021
Still no cycles on Nestybox's side to help integrate KinD with Sysbox unfortunately. If anyone else has the desire and cycles we would be happy to assist.