I have setup a nomad cluster in Digital Ocean using do-hashicorp-cluster which is quite lovely and very well done.
I wanted to use DO Volumes for stateful data and found This example
I’m having issue with it, however. When I bring up the example redis job I get this error in the allocation:
2021-08-23T13:00:27+01:00 Setup Failure failed to setup alloc: pre-run hook "csi_hook" failed: claim volumes: rpc error: cannot change attachment mode of claimed volume
Additionally I’m somewhat confused as to why terraform is being used to create the volume instead of letting the CSI driver do it. Is this something specific to DO?