apiVersion: apps/v1
kind: Deployment
metadata:
  name: jupyter
  labels:
    app: jupyter
  namespace: jupyter
spec:
  replicas: 1
  selector:
    matchLabels:
      app: jupyter
  template:
    metadata:
      labels:
        app: jupyter
    spec:
      containers:
      - name: jupyter
        image: jupyter/minimal-notebook:latest
        ports:
        - containerPort: 8888
        resources: {}
        volumeMounts:
        - mountPath: /home/jovyan/work
          name: jupyter-data
        env:
        - name: JUPYTER_ENABLE_LAB
          value: 'yes'
      volumes:
      - name: jupyter-data
        persistentVolumeClaim:
          claimName: jupyter-data
