I'm trying to work out how to transfer a file from ceph block storage, e.g. a database backup.
I've followed the example here: https://github.com/rook/rook/blob/master/Documentation/ceph-block.md so that I have Wordpress and mysql working on rook-ceph-block
.
How can I then transfer a file from the running pods. For example if I wanted to download a database backup onto another host?
Simply do not use block storage.
At the moment I use NFS with Ubuntu+Autofs (outside of Kubernetes) with the relatively new Kubernetes local storage. See at the bottom. One advantage compared to e.g. a default Longhorn is RWX instead of RWO.
With
sudo mc
you can easily copy stuff back and forth.You can also easily copy things out of GlusterFS, but in version 7, which I tested a few weeks ago, it is not yet suitable for databases or Redis with many small write operations.