Closed MrBurawski closed 2 years ago
Hello @MrBurawski
K8s persistent volumes are not namespaced resources. You can use this command to check that:
kubectl api-resources | grep pv
The 4th column specifies if it is a namespaced resource or not.
Regards, Abderaouf
Hello @MrBurawski
K8s persistent volumes are not namespaced resources. You can use this command to check that:
kubectl api-resources | grep pv
The 4th column specifies if it is a namespaced resource or not.
Regards, Abderaouf
Thank You for Your reply, I understood that it is not necessary.
When creating the persistent volume user should specify the "namespace" in the metadata. Otherwise, the volume will not persist in the desired namespace. Had to learn the hard way because it was missing :D