Problems with XFS volumes on some provisioners #2202
-
Hi, initially I've encountered this problem with our proprietary storage provisioner after switching from Those are 2 # WORKS
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: ebs-csi-xfs
parameters:
type: gp3
fsType: xfs
provisioner: ebs.csi.aws.com
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
---
# DOESN'T WORK
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: gp2-xfs
parameters:
type: gp2
fsType: xfs
provisioner: kubernetes.io/aws-ebs
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer When I spin up pod+pvc referring those SCs, the
as if it expects host machine to have What can I do to further investigate and hopefully resolve the issue? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This is an expected difference between out-of-tree CSI storage drivers (first example) and in-tree storage drivers (second example). Bottlerocket doesn't include Given the CSI migration effort in the wider ecosystem - do you actually need the in-tree approach to work? Long-term I'd like to see everything move to CSI. In #1147 I added |
Beta Was this translation helpful? Give feedback.
-
Thanks for your clarification, things now make more sense! As I mentioned in the beginning, I've first noticed this issue on our proprietary volume provisioner. Turns out it's just a proxy with custom volume reuse logic and the backend that implements actual volume operations. I was able to switch the backend to So it's up to maintainers to decide whether to include |
Beta Was this translation helpful? Give feedback.
This is an expected difference between out-of-tree CSI storage drivers (first example) and in-tree storage drivers (second example). Bottlerocket doesn't include
xfsprogs
, so any attempt to use the in-tree drivers will fail whenkubelet
tries to runmkfs.xfs
.Given the CSI migration effort in the wider ecosystem - do you actually need the in-tree approach to work? Long-term I'd like to see everything move to CSI.
In #1147 I added
e2fsprogs
to make the local volume static provisioner work, which had the side effect of enabling the in-tree storage driver to work forext4
filesystems. So to be clear, I'm not opposed to adding XFS support in the base OS. It's the default filesystem for AL2, a…