DanC77
DanC77

Reputation: 51

Pass "volume-driver" option to kubernetes pod

Is it possible to pass the "--volume-driver" with in kubernetes' yml file?

Ex. Using Docker I can perform the following

docker run --volume-driver rbd -v image:/mountpoint ubuntu

Thanks

Upvotes: 2

Views: 321

Answers (1)

Eric Tune
Eric Tune

Reputation: 8228

Kubernetes does support several volume types, including rbd, as you mention in your example. When you create a pod, you can specify what volumes and their types you want in the yaml file. Documentation on volumes is here: http://kubernetes.io/v1.0/docs/user-guide/volumes.html#rbd

Kubernetes uses its own volume system that is different from Docker's: Kubenetes supports some types of volumes that Docker doesn't and vice versa.

Upvotes: 1

Related Questions