How to reuse the same dfdaemon in a k8s cluster
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?
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.
You can use
dfget daemonto run dfdaemon in node and expose daemon unix socket to pod. Dfget downloads file with--daemon-sockoptions in Pod.
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?
You need to mount Unix socket file to pod.
@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.
