-
-
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.
- Loading branch information
1 parent
8762dde
commit 8d545e4
Showing
4 changed files
with
84 additions
and
0 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,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 |
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,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
62
charts/datalayer-ceph-storage/templates/users-storage.yaml
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,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.