Skip to content

Commit

Permalink
Add chart for users storage
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval committed Sep 18, 2024
1 parent 8762dde commit 8d545e4
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 0 deletions.
13 changes: 13 additions & 0 deletions charts/datalayer-ceph-storage/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
description: Datalayer Storage
name: datalayer-storage
version: 0.0.1
appVersion: 0.0.1
home: https://datalayer.tech
sources:
- https://github.com/datalayer/helm-charts/tree/main/charts/datalayer-ceph-storage
icon: https://assets.datalayer.tech/datalayer-square.png
maintainers:
- name: Datalayer
email: [email protected]
url: https://datalayer.io
9 changes: 9 additions & 0 deletions charts/datalayer-ceph-storage/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[![Datalayer](https://assets.datalayer.tech/datalayer-25.svg)](https://datalayer.io)

# Datalayer Storage Helm Chart

Deploy storage for Datalayer services on top of the
Ceph Cluster

> [IMPORTANT]
> You first need to deploy Datalayer Ceph Cluster chart
62 changes: 62 additions & 0 deletions charts/datalayer-ceph-storage/templates/users-storage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: cephfs-users-pvc
namespace: datalayer-jupyter
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
# Should match storageClass name in ceph-cluster
storageClassName: ceph-filesystem
---
apiVersion: v1
kind: Pod
metadata:
name: ceph-users-prepare
namespace: datalayer-jupyter
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: role.datalayer.io/jupyter
operator: In
values:
- "true"
containers:
- image: busybox:1.36.1-musl
name: prepare-cephfs
command:
- /bin/sh
- -x
- -e
- -c
- "for DIRECTORY in home public datasets tmp
\ndo
\n\tmkdir -p /$DIRECTORY
\n\tchown $KERNEL_UID:$KERNEL_GID /$DIRECTORY
\ndone"
env:
- name: KERNEL_UID
value: '1000'
- name: KERNEL_GID
value: '100'
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 250m
memory: 64Mi
volumeMounts:
- mountPath: /data/shared
name: user-data
volumes:
- name: user-data
persistentVolumeClaim:
claimName: cephfs-users-pvc
readOnly: false
Empty file.

0 comments on commit 8d545e4

Please sign in to comment.