Jupyter Contents
Jupyter Contents Specification
You can create on your content definitions ready to be used in Jupyter Environments.
AWS S3 Buckets and Git Repositories contents are supported for now.
The content specifications often rely on secrets the cluster manager will need to create.
The complete specification is available here and the following sections show simple examples.
Manage the Contents
kubectl get jupyter-contents -A
kubectl get jupyter-contents -o yaml -A
AWS S3 Example
In this example, the authentication must be stored in the s3-secret
secret providing the following key.
access_key_id
secret_access_key
region
cat <<EOF | kubectl apply -f -
apiVersion: datalayer.io/v1
kind: JupyterContent
metadata:
name: s3-satellite-sentinels-images-content
namespace: datalayer-jupyter
spec:
description: Satellite images from Sentinels mission.
type: s3
source: datalayer-dev
permissions: ro
secret: s3-secret
EOF
kubectl get jupyter-contents -A
kubectl get jupyter-contents -o yaml -A
Git Repository Example
In this example, the Git repository must be public.
cat <<EOF | kubectl apply -f -
apiVersion: datalayer.io/v1
kind: JupyterContent
metadata:
name: jakevdp-sklearn-tutorial-content
namespace: datalayer-jupyter
spec:
description: Jake VanderPlas scikit-learn tutorial
type: git
source: https://github.com/jakevdp/sklearn_tutorial.git
EOF