MySQL on Kubernetes - pod has unbound immeidate persistentVolumeClaim

3/6/2020

I tried deploying MySQL on Kubernetes as mentioned in https://kubernetes.io/docs/tasks/run-application/run-replicated-stateful-application/. But, running into the below error.

Events:
  Type     Reason            Age                From               Message
  ----     ------            ----               ----               -------
  Warning  FailedScheduling  27s (x6 over 72s)  default-scheduler  pod has unbound immediate PersistentVolumeClaims (repeated 99 times)
  Warning  FailedScheduling  0s (x14 over 94s)  default-scheduler  pod has unbound immediate PersistentVolumeClaims (repeated 100 times)

Not sure what is wrong with this? Can i remove volumeClaimTemplates and create a separate persistentVolumeClaim?

-- user1578872
kubernetes

1 Answer

3/6/2020

In the doc its mentioned

You need to either have a dynamic PersistentVolume provisioner with a default StorageClass, or statically provision PersistentVolumes yourself to satisfy the PersistentVolumeClaims used here

-- Arghya Sadhu
Source: StackOverflow