Dragonfly2 icon indicating copy to clipboard operation
Dragonfly2 copied to clipboard

How to reuse the same dfdaemon in a k8s cluster

Open lihuawei321 opened this issue 1 year ago • 3 comments

I deployed dfdaemon in the cluster through a DaemonSet. I want all the pods in this cluster to use dfget to pull files from object storage. How can I reuse dfdaemon? image

lihuawei321 avatar May 16 '24 06:05 lihuawei321

You can use dfget daemon to run dfdaemon in node and expose daemon unix socket to pod. Dfget downloads file with --daemon-sock options in Pod.

image

gaius-qi avatar May 16 '24 06:05 gaius-qi

You can use dfget daemon to run dfdaemon in node and expose daemon unix socket to pod. Dfget downloads file with --daemon-sock options in Pod.

image

image image I have deployed a dfdaemon on each node. How should I use the dfget --daemon-sock command in my own pod to utilize the exposed socket?

lihuawei321 avatar May 17 '24 06:05 lihuawei321

You need to mount Unix socket file to pod.

gaius-qi avatar Jun 14 '24 02:06 gaius-qi

@lihuawei321 Please use the latest version of the rust client, refer to https://github.com/dragonflyoss/client.

Use the same dfdaemon in the container, refer to https://d7y.io/docs/next/reference/commands/client/dfget/#download-in-container.

gaius-qi avatar Apr 23 '25 12:04 gaius-qi