Report this

What is the reason for this report?

Kubernetes PVC for daemonsets

Posted on August 1, 2019

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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.