Zbigniew Małachowski:
I am stuck with statefulset and pvc - they both seem to be in a vicious circle waiting for each other, both staying in pending status. Any obvious reason for this?
From “describe statefulset”: Warning FailedScheduling 45m default-scheduler […] 2 node(s) didn’t find available persistent volumes to bind.
From “describe pvc”: waiting for pod mysql-0 to be scheduled
StatefulSet uses a PersistentVolumeClaimTemplate to generate pvc of particular StorageClass. The StorageClass I created uses “local” storage provider.
The yaml files for StorageClass, HeadlessService, StatefulSet are on <https://github.com/ZbyszekMM/StatefulSet.git|github here>.