Skip to content

janpf/ratarmount-flexvolume

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ratarmount-flexvolume

usage

apiVersion: v1
kind: Pod
metadata:
  name: &name debug
spec:
  containers:
    - name: *name
      image: "ubuntu"
      command:
      - sleep
      - "110000000"
      volumeMounts:
      - name: &ratar_volume_name ratar
        mountPath: /data
      - name: &ceph_scratch_volume_name scratch
        mountPath: /scratch
  volumes:
  - name: *ratar_volume_name
    flexVolume:
      driver: "janpf/ratarmount-driver"
      readOnly: true
      options:
        # multiple archives can be mounted by separating them with a ";"
        archive: "zehe/archiv/uncategorized/coffee-gui.tgz;zehe/archiv/uncategorized/coffee-gui2.tgz" # mandatory.
        ceph_mount: *ceph_scratch_volume_name # reference to another volume name from which the archive will be read
        recreate-index: "false" # default: false # optional
        recursive: "false" # default: false # optional
        debug: "false" # default: false # optional
  - name: *ceph_scratch_volume_name
    cephfs:
      monitors:
      - 132.187.14.16,132.187.14.17,132.187.14.19,132.187.14.20
      user: zehe
      path: /scratch
      secretRef:
        name: ceph-secret

relevant flexvolume documentation

openshift

leebriggs

flexvolume example

flexvolume examples incl. yaml

dependencies

python:

click
ratarmount

system:

[apt-get install] fuse fuse-zip

[yum install] fuse fuse-zip python3-devel zlib-devel libzstd-devel gcc-c++