-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add CVMFS deployment and add the volume to the jhub release
- Loading branch information
1 parent
651fed6
commit 3d509be
Showing
4 changed files
with
71 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# CVMFS | ||
## CVMFS on the VRE | ||
|
||
CERN OpenStack k8s cluster v1.29.2 is deployed with a `cvmfs StorageClass` provisioned by `cvmfs.csi.cern.ch` and the CVMFS CSI (Container Storage Interface) plugin [link to github repository](https://github.com/cvmfs-contrib/cvmfs-csi). Version `cvmfs-csi-v2.3.2` of the CVMFS charts is installed. | ||
|
||
To provision a cvmfs volume within any jupyterhub pod: | ||
* Create a `pvc` making use of the cvms `StorageClass` | ||
* Add an `extraVolumes` and an `extraVolumeMounts` in the [JupyterHub release manifest](../jhub/jhub-release.yaml). | ||
|
||
The manifests in this directory will also deploy a pod (`cvmfs-client`) to access cvmfs from the cluster. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: cvmfs-client | ||
namespace: jhub | ||
spec: | ||
containers: | ||
- name: idle | ||
image: busybox | ||
imagePullPolicy: IfNotPresent | ||
command: [ "/bin/sh", "-c", "trap : TERM INT; (while true; do sleep 1000; done) & wait" ] | ||
volumeMounts: | ||
- name: cvmfs | ||
mountPath: /cvmfs | ||
# CVMFS automount volumes must be mounted with HostToContainer mount propagation. | ||
mountPropagation: HostToContainer | ||
volumes: | ||
- name: cvmfs | ||
persistentVolumeClaim: | ||
claimName: cvmfs-vre-pvc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
# Based on docs and snippets from https://github.com/cvmfs-contrib/cvmfs-csi | ||
|
||
# Create StorageClass for provisioning CVMFS automount volumes, | ||
# and a PersistentVolumeClaim that's fulfilled by the StorageClass. | ||
|
||
# If Controller plugin is not deployed, follow the example in volume-pv-pvc.yaml. | ||
|
||
# Notes for the VRE cluster. | ||
# StorageClass is not needed because is already deployed when starting the cluster. | ||
# Othersiwe, have a look to the documentation on the link above | ||
# --- | ||
# apiVersion: storage.k8s.io/v1 | ||
# kind: StorageClass | ||
# metadata: | ||
# name: cvmfs | ||
# provisioner: cvmfs.csi.cern.ch | ||
# --- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: cvmfs-vre-pvc | ||
namespace: jhub | ||
spec: | ||
accessModes: | ||
- ReadOnlyMany | ||
resources: | ||
requests: | ||
# Volume size value has no effect and is ignored | ||
# by the driver, but must be non-zero. | ||
storage: 1 | ||
storageClassName: cvmfs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters