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?
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.