cvmfs

by ScienceBox

Helm chartv0.0.7App 2.10.0

A CVMFS client chart

About this chart

cvmfs

A CVMFS client chart

The Helm chart for the CVMFS client

Deploy

The chart can be installed via Helm with

helm repo add sciencebox https://registry.cern.ch/chartrepo/sciencebox
helm repo update

helm install cvmfs sciencebox/cvmfs

A DaemonSet will be created and the mountpoint /cvmfs will be exposed on all the hosts part of the cluster. #TODO: Label hosts and deploy there only

Notable defaults

  • Mounted repositories:
    • cvmfs-config.cern.ch
    • sft.cern.ch
    • sft-nightlies.cern.ch
  • 20 GB cache size
  • Direct connection to CVMFS Straum 1 server (no caches)

Mount other repositories

In values.yaml, add your desired as follows:

repositories:
  - myrepo.cern.ch
  - sft.cern.ch
  - unpacked.cern.ch

Consider that the list specified as repositories: overrides the default ones. If are required, they should be part of the list.

Custom configuration for all repositories

The key-value pairs passed under default_local represent the configuration options for the CVMFS client and apply to all the repositories:

default_local:
  CVMFS_DNS_MIN_TTL: 300
  CVMFS_QUOTA_LIMIT: 20000
  CVMFS_HTTP_PROXY: DIRECT
  CVMFS_CACHE_BASE: /var/lib/cvmfs

Such values are mapped to the cvmfs configuration file /etc/cvmfs/default.local. Further documentation is available for supported configuration options:

Custom configuration for each repository

The chart supports defining custom parameters for each repository under config_d:. Example:

config_d:
  atlas-nightlies.cern.ch:
    CVMFS_SERVER_URL: 'http://cvmfs-stratum-one.cern.ch/cvmfs/atlas-nightlies.cern.ch'
  sft.cern.ch:
    CVMFS_HTTP_PROXY: 'http://ca-proxy.cern.ch:3128'

A set of key-value pairs is expected for each repository and it will be mapped to the configuration file /etc/cvmfs/config.d/<repo_name>.local. If no custom parameters are provided, the default configuration defined in defaul_local (see above) will be used.

Advanced options

  1. Mount with a different uid or gid

Defaults are 998 and 996 for uid and gid, respectively. Custom values can be specified in values.yaml as integers with:

mountOptions:
  uid: 1234
  gid: 5678

If helm fails parsing the provided values, it will use 0, 0 (typically root, root).

  1. Mount at a different path on the host

Default is to use /cvmfs, but this can be configured to a custom path using:

mountOptions:
  hostMountpoint: /var/cvmfs

Values

KeyTypeDefaultDescription
customLabelsobject{"component":"swan-users","service":"swan"}Custom labels to identify cvmfs pod. They are used by node selection, if enabled (see above). Label nodes accordingly to avoid scheduling problems.
default_localobject{"CVMFS_CACHE_BASE":"/var/lib/cvmfs","CVMFS_DNS_MIN_TTL":300,"CVMFS_HTTP_PROXY":"DIRECT","CVMFS_PROXY_SHARD":false,"CVMFS_QUOTA_LIMIT":20000}cvmfs configuration common to all repositories stored as key:value pairs Documentation at: - https://cvmfs.readthedocs.io/en/stable/cpt-configure.html - https://cvmfs.readthedocs.io/en/stable/apx-parameters.html#client-parameters
image.pullPolicystring"IfNotPresent"image pull policy
image.repositorystring"gitlab-registry.cern.ch/sciencebox/docker-images/cvmfs"Docker image repository for the CVMFS image
image.tagstring"2.10.0"image tag for cvmfs image
mountOptionsobject{"gid":996,"hostMountpoint":"/cvmfs","uid":998}Additional mount options common to all repositories
podAssignmentobject{"enableNodeSelector":false}Assign cvmfs pod to a node with a specific label. If true, it will be deployed only on nodes labeled as per customLabels (see below). If false, it will be deployed on all nodes of the cluster (it is a daemonSet).
prefetcherobject{"enabled":false}Prefetch from cvmfs repos to keep client cache warm Parameters: - enabled: Boolean to enable/disable prefetcher. Defaults to false - jobs: List of commands to execute in crond format 'cat_readme' is the name of a sample prefetching job with the following properties - command: The command to be executed -- In this case, a simple cat of a file - user: The user executing the command (Default: root) - minute, hour, day, month, weekday: When to executre the command as per cron file format (Default: *, aka every minute)
repositorieslist["cvmfs-config.cern.ch","sft.cern.ch","sft-nightlies.cern.ch"]Repositories to be mounted by cvmfs pod.

Autogenerated from chart metadata using helm-docs v1.11.0

Deploy cvmfs with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cvmfs on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcvmfs is pinned at v0.0.7 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply