Giter Club home page Giter Club logo

cvmfs-nfs-kubernetes's Introduction

Kubernetes NFS Server exporting CVMFS mounts

This project deploys an NFS server in a stateful set exposing a defined list of CVMFS mounts. It functions in a similar fasion as the cvmfs-csi approach but doesn't make use of privileged DaemonSets.

NOTE: Scalability has not been tested, but a HorizontalPodAutoScaler mechanism is put in place for the StatefulSet in case the pod(s) start running low on resources Server is based on the configuration at https://github.com/mappedinn/kubernetes-nfs-volume-on-gke.

Usage (for Openshift)

  • A privileged service account is needed for this setup to work. It will only be used to manage the server since user pods will not need to do any fuse-related operations.

  • An Openshift template is provided under the kubernetes folder. To list the parameters for the template run:

$ oc process --parameters -f nfs-server-template.yaml
NAME                 DESCRIPTION                                                                             GENERATOR           VALUE
CVMFS_REPOSITORIES   A space ' ' separated string of CVMFS repositories to provision                                             config-osg.opensciencegrid.org cms.cern.ch oasis.opensciencegrid.org singularity.opensciencegrid.org
STORAGE_CLASS_NAME   The storage class name to provision NFS cache                                                               ocs-storagecluster-cephfs
SERVICE_ACCT         Which service account will be used for this deploymet (Might need special privileges)                       nfs-serviceaccount
EXPERIMENT           Ideally, we should have one of these per experiment, or VO                                                  genericVo
  • To instantiate the template:
oc process -f kubernetes/nfs-server-template.yaml -p CVMFS_REPOSITORIES="config-osg.opensciencegrid.org cms.cern.ch oasis.opensciencegrid.org singularity.opensciencegrid.org unpacked.cern.ch" -p EXPERIMENT=cms | oc apply -f -
  • This will result in the creation of a statefulSet capable of exporting CVMFS mounts via NFS inside your Openshift/Kubernetes cluster

cvmfs-nfs-kubernetes's People

Contributors

mapsacosta avatar

Watchers

 avatar  avatar

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.