Hey!
Nas my omv I have several folders shared.
From what I understand, local-path-provisioner should take care of the paths itself and create a pv so that I can dock the pvc there.
I had such pv's visible before, but for some reason they ceased to be and I currently have no way to use the pv.
The local-path-provisioner seems to be working correctly, however there is absolutely nothing in the logs:
(⎈|homelab:kube-system)[~/Downloads]$ kubectl get pod
NAME READY STATUS RESTARTS AGE
coredns-6799fbcd5-92qf7 1/1 Running 1 (16h ago) 17h
helm-install-cert-manager-hq277 0/1 Completed 0 17h
helm-install-kubernetes-dashboard-knpfr 0/1 Completed 0 17h
helm-install-traefik-5cdrb 0/1 Completed 2 17h
helm-install-traefik-crd-vgrrd 0/1 Completed 0 17h
local-path-provisioner-757dddb6f-q6fm5 1/1 Running 0 5m40s
metrics-server-67c658944b-v8znx 1/1 Running 1 (16h ago) 17h
svclb-traefik-0382d227-7xn72 3/3 Running 3 (16h ago) 17h
traefik-bdb6b54d5-p6mn5 1/1 Running 1 (16h ago) 17h
(⎈|homelab:kube-system)[~/Downloads]$
(⎈|homelab:kube-system)[~/Downloads]$ kubectl logs local-path-provisioner-757dddb6f-q6fm5
I0415 14:06:20.279208 1 controller.go:811] Starting provisioner controller rancher.io/local-path_local-path-provisioner-757dddb6f-q6fm5_3fcbabb7-562f-4757-86e5-6e4ddca8e916!
I0415 14:06:20.380665 1 controller.go:860] Started provisioner controller rancher.io/local-path_local-path-provisioner-757dddb6f-q6fm5_3fcbabb7-562f-4757-86e5-6e4ddca8e916!
Alles anzeigen
Storage class is stowed, but it kind of doesn't work:
(⎈|homelab:kube-system)[~/Downloads]$ kubectl get storageclasses.storage.k8s.io
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
local-path (default) rancher.io/local-path Delete WaitForFirstConsumer false 3s
shared-folder rancher.io/local-path Retain WaitForFirstConsumer false 17h
(⎈|homelab:kube-system)[~/Downloads]$
(⎈|homelab:kube-system)[~/Downloads]$ kubectl describe storageclasses.storage.k8s.io local-path
Name: local-path
IsDefaultClass: Yes
Annotations: kubectl.kubernetes.io/last-applied-configuration={"apiVersion":"storage.k8s.io/v1","kind":"StorageClass","metadata":{"annotations":{"objectset.rio.cattle.io/applied":"H4sIAAAAAAAA/4yRT+vUMBCGv4rMua1bu1tKwIOu7EUEQdDzNJlux6aZkkwry7LfXbIqrIffn2PyZN7hfXIFXPg7xcQSwEBSiXimaupSxfJ2q6GAiYMDA9/+oKPHlKCAmRQdKoK5AoYgisoSUj5K/5OsJtIqslQWVT3lNM4xUDzJ5VegWJ63CQxMTXogW128+czBvf/gnIQXIwLOBAa8WPTl30qvGkoL2jw5rT2V6ZKUZij+SbG5eZVRDKR0F8SpdDTg6rW8YzCgcSW4FeCxJ/+sjxHTCAbqrhmag20Pw9DbZtfu210z7JuhPnQ719m2w3cOe7fPof81W1DHfLlE2Th/IEUwEDHYkWJe8PCsgJgL8PxVPNsLGPhEnjRr2cSvM33k4Dicv4jLC34g60niiWPSo4S0zhTh9jsAAP//ytgh5S0CAAA","objectset.rio.cattle.io/id":"","objectset.rio.cattle.io/owner-gvk":"k3s.cattle.io/v1, Kind=Addon","objectset.rio.cattle.io/owner-name":"local-storage","objectset.rio.cattle.io/owner-namespace":"kube-system","storageclass.kubernetes.io/is-default-class":"true"},"creationTimestamp":"2024-04-14T21:07:06Z","labels":{"objectset.rio.cattle.io/hash":"183f35c65ffbc3064603f43f1580d8c68a2dabd4"},"name":"local-path","resourceVersion":"257","uid":"a552cb80-5993-4e02-8e06-d7c9b20d6e52"},"provisioner":"rancher.io/local-path","reclaimPolicy":"Delete","volumeBindingMode":"WaitForFirstConsumer"}
,objectset.rio.cattle.io/applied=H4sIAAAAAAAA/4yRT+vUMBCGv4rMua1bu1tKwIOu7EUEQdDzNJlux6aZkkwry7LfXbIqrIffn2PyZN7hfXIFXPg7xcQSwEBSiXimaupSxfJ2q6GAiYMDA9/+oKPHlKCAmRQdKoK5AoYgisoSUj5K/5OsJtIqslQWVT3lNM4xUDzJ5VegWJ63CQxMTXogW128+czBvf/gnIQXIwLOBAa8WPTl30qvGkoL2jw5rT2V6ZKUZij+SbG5eZVRDKR0F8SpdDTg6rW8YzCgcSW4FeCxJ/+sjxHTCAbqrhmag20Pw9DbZtfu210z7JuhPnQ719m2w3cOe7fPof81W1DHfLlE2Th/IEUwEDHYkWJe8PCsgJgL8PxVPNsLGPhEnjRr2cSvM33k4Dicv4jLC34g60niiWPSo4S0zhTh9jsAAP//ytgh5S0CAAA,objectset.rio.cattle.io/id=,objectset.rio.cattle.io/owner-gvk=k3s.cattle.io/v1, Kind=Addon,objectset.rio.cattle.io/owner-name=local-storage,objectset.rio.cattle.io/owner-namespace=kube-system,storageclass.kubernetes.io/is-default-class=true
Provisioner: rancher.io/local-path
Parameters: <none>
AllowVolumeExpansion: <unset>
MountOptions: <none>
ReclaimPolicy: Delete
VolumeBindingMode: WaitForFirstConsumer
Events: <none>
(⎈|homelab:kube-system)[~/Downloads]$
Alles anzeigen
As you can see, no pv is available:
(⎈|homelab:kube-system)[~/Downloads]$ kubectl get pv --all-namespaces
No resources found
(⎈|homelab:kube-system)[~/Downloads]$
I tried uninstalling the plugin, deleting the data from /etc and /var/lib however this did not help.
Other than that, k3s works fine.
Can you please help me ?