Closed loganmarchione closed 4 months ago
Well..Followed your information, but the source.type is LocalVolume
in my side.
# kubectl describe pv/pvc-dd72d4d9-27a9-4c18-b7ff-2fd1fc0232db
Name: pvc-dd72d4d9-27a9-4c18-b7ff-2fd1fc0232db
Labels: <none>
Annotations: pv.kubernetes.io/provisioned-by: rancher.io/local-path
Finalizers: [kubernetes.io/pv-protection]
StorageClass: local-path
Status: Bound
Claim: default/local-volume-pvc
Reclaim Policy: Delete
Access Modes: RWO
VolumeMode: Filesystem
Capacity: 128Mi
Node Affinity:
Required Terms:
Term 0: kubernetes.io/hostname in [rancher60-worker1]
Message:
Source:
Type: LocalVolume (a persistent volume backed by local storage on a node)
Path: /mnt/local-path/pvc-dd72d4d9-27a9-4c18-b7ff-2fd1fc0232db_default_local-volume-pvc
Events: <none>
I found your pvc doesn't have volumeType: local
.
Can you check your local-path-provision version again?
@derekbit - My PVC has the annotation volumeType: local
set (see first code block in my original comment). Is that what you're referring to?
How do you check the local-path-provisioner version? I'm on K3s v1.25.4+k3s1
which supposedly has v0.0.23
.
Are you defining a separate PV in addition to a PVC? I'm only defining a PVC, without a PV. Reading through the README, maybe I'm wrong here and local-path-provisioner is working as intended and only creates a source.type
of LocalVolume
when defining a PV?
hi @loganmarchione, have the same problem, how did you solve it? https://github.com/rancher/local-path-provisioner/issues/390
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.
Wanted to clarify something. I intended to use
local
instead ofHostPath
. Looking at the examples (below), the only difference is the addition of the annotationvolumeType: local
.I have a PVC defined here:
However, the volume type is still
HostPath
. What am I doing wrong?I'm using a custom storage class called
local-path-customized
so that I can add areclaimPolicy
andallowVolumeExpansion
. Is that breaking my setup?