You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using the persistence.hostPath value and having a default storageClass defined in the Kubernetes cluster. The final PVC will still have the storageClassName with the value of the default storageClass attached. This results in the following error/warning event: Cannot bind to requested volume "mailu-storage": storageClassName does not match
Environment
K3s Kubernetes cluster with Longhorn set as default storage class.
Additional context
Problem can be avoided by removing the default attribute from the storageClass with the following command: kubectl patch storageclasses.storage.k8s.io <YOUR_CURRENT_DEFAULT_STORAGECLASS> -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"false"}}}'
The text was updated successfully, but these errors were encountered:
Describe the bug
When using the
persistence.hostPath
value and having a default storageClass defined in the Kubernetes cluster. The final PVC will still have the storageClassName with the value of the default storageClass attached. This results in the following error/warning event:Cannot bind to requested volume "mailu-storage": storageClassName does not match
Environment
K3s Kubernetes cluster with Longhorn set as default storage class.
Additional context
Problem can be avoided by removing the default attribute from the storageClass with the following command:
kubectl patch storageclasses.storage.k8s.io <YOUR_CURRENT_DEFAULT_STORAGECLASS> -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"false"}}}'
The text was updated successfully, but these errors were encountered: