I have a 1 master two slave kubernetes architecture setup. So when I am creating a daemonset workload with busybox image which just generates some random logs, the container gets created in the first node (slave1) only. The (slave2) container says ContainerCreating.
I have tried changing the PVC’s specs.accessModes: to ReadWriteMany.
Do I need to do any additional changes in order to get the pods running in both the slave nodes ?
Further: I’ll be backing up the data generated by these into NFS
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
As @ojna mentioned DO block storage doesnt support RWM and the symptom describes usually is what happens, if that is the type of PVC claim you are using you need a different class.
Hi,
What storageclass are you using on the PVC? ReadWriteMany is only supported by a small selection of classes.
eg. DigitalOceans blockstorage don’t support RWM (yet).
Hi,
As the other responses have already mentioned, DOKS pvc’s by default rely on DO’s Block Storage product. In doing so, we inherit the same storage limitations of that product. You can see these limitations documented here:
https://www.digitalocean.com/docs/kubernetes/overview/#persistent-data https://www.digitalocean.com/docs/kubernetes/overview/#limits
You can also create pvc’s using your own storageclasses if you have other means of providing storage to the cluster. The limitation discussed above is not as much a DOKS limitation as it is a DO Block Storage limitation.
Hope this helps!
Regards,
John Kwiatkoski Senior Developer Support Engineer
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.