Migrating my cloud to Kubernetes – storage – the final decision SSHFS


However I am running a test and development environment and have to look after my costs, so this will suffice for now. Upgrades can always be done down the road.

All you have to do really is to install the sshfs package, the name might differ depending on the OS. Then you will need to add an entry in your /etc/fstab like this:

#sshfs share
:share /data/share fuse.sshfs comment=sshfs,defaults,transform_symlinks,identityfile=/root/.ssh/id_rsa,users,exec,auto,allow_other,_netdev,uid=1000,gid=1000,reconnect 0 0
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: sshfs-storage-class
provisioner: kubernetes.io/no-provisioner
reclaimPolicy: Retain
allowVolumeExpansion: true
volumeBindingMode: WaitForFirstConsumer

Leave a Reply

Your email address will not be published. Required fields are marked *

four × two =