Git Product home page Git Product logo

ratarmount-flexvolume's Introduction

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++

ratarmount-flexvolume's People

Contributors

azehe avatar dr-ankr avatar janpf avatar

Stargazers

 avatar

Watchers

 avatar  avatar

ratarmount-flexvolume's Issues

ratarmount options not handled correctly

ratarmount options (recursive, ...) are passed to python as strings and therefore not handled correctly. They will always evaluate to True when used as a condition. Need to add parsing as bools.

Mount will time out for large archives when the index is not yet built

At first mount, ratarmount builds an index from the archive.
This takes a long time for large archives and will lead to a mount timeout in kubernetes. We need to find a way to work around that, optimally with a progress report in the Pod description.

Quickfix: Mount the archive once on a host directly, which builds the index. This can only be done by an admin.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.