10/11/2022, 10:16 AM
Hi All, I would very much like some help if possible. So I have got a small cluster setup using Rancher RKE2, and wanted some persistent storage for an app I installed longhorn, and the iscsi tools on each of the nodes and have them running, and in longhorn now have a healthy iSCSI volume, and using longhorn created the Persistent Volume and Persistent Volume Claim as my app needed I then attempted to deploy the app to be met by this errors:
Unable to attach or mount volumes: unmounted volumes=[<app>-pvc]
AttachVolume.Attach failed for volume "<app>" : rpc error: code = InvalidArgument desc = volume <app> invalid frontend type iscsi
I found this page that may have some more information:[…]orage/manage-persistent-storage/install-iscsi-volumes and the next instruction 'After installing the initiator tool on your nodes, edit the YAML for your cluster, editing the kubelet configuration to mount the iSCSI binary and configuration, as shown in the sample below' I don't know which YAML it is referring to, any help here would be great, thanks in advance
I have now attempted to create the volumes as block device instead but these cannot be attached to a node. Looking at it, it attaches then instantly unattaches and repeats this and never becomes healthy