longhorn¶
- Code: kubernetes/longhorn
Directories used¶
- /var/lib/rancher/longhorn/ (VOLUME DATA)
Configuration¶
# defaults
commands:
install:
script:
- ansible-playbook k8s_longhorn.yml
uninstall:
script:
- ansible-playbook k8s_longhorn.yml
namespace: longhorn-system
version: 1.2.2
config:
datapath: /var/lib/longhorn/
Troubleshooting¶
MountVolume.SetUp failed for volume
due to multipathd on the node- Pod stuck in creating state when Longhorn volumes filesystem is corrupted
- If provisioning of volumes fails continuously, it often helps to kill the pods of the
csi-attacher
andcsi-provisioner
DaemonSets. Once they're recreated, the Kubernetes API can interface with the CSI driver again
Last update:
July 13, 2022