49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: jupyter-notebook
|
|
namespace: jupyter
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: jupyter-notebook
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: jupyter-notebook
|
|
spec:
|
|
containers:
|
|
- name: jupyter-notebook
|
|
image: quay.io/jupyter/datascience-notebook:python-3.12.8
|
|
env:
|
|
- name: MINIO_ACCESS_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: minio-credentials
|
|
key: MINIO_ACCESS_KEY
|
|
- name: MINIO_SECRET_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: minio-credentials
|
|
key: MINIO_SECRET_KEY
|
|
- name: MINIO_ENDPOINT_URL
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: minio-credentials
|
|
key: MINIO_ENDPOINT_URL
|
|
envFrom:
|
|
- secretRef:
|
|
name: minio-credentials
|
|
ports:
|
|
- containerPort: 8888
|
|
# env:
|
|
# - name: JUPYTER_TOKEN
|
|
# value: "your-secure-token"
|
|
volumeMounts:
|
|
- mountPath: /home/jovyan/work
|
|
name: notebook-data
|
|
volumes:
|
|
- name: notebook-data
|
|
persistentVolumeClaim:
|
|
claimName: jupyter-notebook-pvc
|