< Previous Solution - Home - Next Solution >
volumeBindingMode: WaitForFirstConsumer
. This forces kubernetes to wait until a workload is deployed before provisioning the disks. See here.
volumeBindingMode: Immediate
. Thus, in earlier days, to force the two PVs to be deployed to the same zone, a new custom storage class needed to be created with volumeBindingMode: WaitForFirstConsumer
. Using a custom storage class is no longer necessary for this hackkubectl exec -it <mongo-db pod name> bash
mongo
show dbs
use <databasename>
db.<table/collection>.find()
Q: What would happen if the node running MongoDB were to crash? Would Kubernetes be able to redeploy the pod?
A: Maybe; more specifically, only if there was another node running in the same AZ as the original node.