-
I was browsing the sidecar documentation, and I'm not quite clear in the intended usage pattern. If I want to share memory between containers from two pods on the same node, presumably I only need and want one vineyard process on that node to keep hold of the shared memory. So the expectation would be that one of those pods uses the sidecar, and the other just connect via a local socket? There would be no point in both pods using a sidecar? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 16 replies
-
The answer is yes. The sidecar is designed to simply the deployment of vineyardd cluster along with users' applications on Kubernetes. One of the possible use cases is the application consists of more than one pod (e.g., different kinds of containerized analytical engines that want to share the same piece of large immutable data), where the sidecar could be helpful to simply the deployment process. |
Beta Was this translation helpful? Give feedback.
-
Hi @PaulRudin, would you please tell us what your application or scenario is and what you want to do with the sidecar? In this way, we can continue to improve this feature and serve your application or scenario better. Looking forward to your reply. |
Beta Was this translation helpful? Give feedback.
-
I had a go at changing my existing config to using the sidecar today. I'm not sure what I'm missing, but the sidecar wasn't injected into the producer daemonset's pods. In any case I have a separate concern. My current setup relies on use host volume mounts for the socket to be accessible to both the producer daemonset's pod and the pods for the consumer application. Is this going to work with the sidecar? |
Beta Was this translation helpful? Give feedback.
-
When you say "independently" do you mean without using the operator? |
Beta Was this translation helpful? Give feedback.
-
@PaulRudin Hi, I have fixed the bug via #1438 and pushed the image to the Docker Hub, you could try the newest vineyard operator image. |
Beta Was this translation helpful? Give feedback.
-
Hi @PaulRudin, we have posted a blog about how to use data sharing with Vineyard on Kubernetes, which may simplify your usage with Vineyard. Please don't hesitate to reach out if you have any further questions or concerns. https://v6d.io/tutorials/kubernetes/data-sharing-with-vineyard-on-kubernetes.html |
Beta Was this translation helpful? Give feedback.
Yeah, deploying the vineyard through the sidecar is very suitable for your scenario. Also, we have a command line tool to simplify the installation of the sidecar, please refer to https://github.com/v6d-io/v6d/blob/main/k8s/cmd/README.md#vineyardctl-inject. If you have any questions about it, feel free to report them here. We'll reply as soon as possible.