Hi,
I had a GKE cluster with a stateful set containing 3 pods with a persistent volume claim each. The pods were torn down by GKE on Jul 27th and they were not created successfully. I was able to notice the following error in the cluster audit log -
"persistentvolumeclaims ""data-<pod name>"" is forbidden: Internal error occurred: 2 default StorageClasses were found"
I did not change the storage class annotation, storageclass.kubernetes.io/is-default-class
for any of the existing storage classes in the cluster. I don’t understand how there were 2 default storage classes suddenly. It would be very helpful to understand how it happened.
To facilitate the pod creation, I changed the storageclass.kubernetes.io/is-default-class
annotation from true
to false
for one of the storage classes. I picked the one that wasn’t supposed to be marked true
by comparing it with another healthy cluster of mine. Although, the PVCs and the pods were successfully created, the data from my old persistent volumes were lost. I had to redeploy my stateful set and reconfigure.