seaweedfs-csi-driver/deploy/kubernetes
Harry Brundage d1ebf58fcf
Update CSI yaml to allow using k8s service DNS to contact the filer
I think lots of users are going to use the CSI driver with a seaweedfs cluster also running in k8s. The natural way to connect the driver to that cluster would be using DNS instead of hard coded IPs, so I set `SEAWEEDFS_FILER` to something like `seaweedfs-filer.seaweed-namespace.svc:8888`, which the driver kept timing out trying to connect. I realized the driver was running using `hostNetwork: true`, which means the in-cluster DNS resolution doesn't happen, so the .svc hostnames are just unresolved.

This changes the default YAML for the next person coming along to use the in-cluster DNS resolution first, and then the host's DNS resolution, so that if the filer happens to be running the cluster, it can be connected from the driver running on the host.

An alternative would be to not use `hostNetworking` for the driver daemonset, but I am presuming that's there for a reason.
2020-10-02 09:03:43 -04:00
..
sample-busybox-pod.yaml copied from moosefs 2020-06-07 21:05:04 -07:00
sample-seaweedfs-pvc.yaml copied from moosefs 2020-06-07 21:05:04 -07:00
seaweedfs-csi.yaml Update CSI yaml to allow using k8s service DNS to contact the filer 2020-10-02 09:03:43 -04:00