Skip to content

Interactive Pods & Long-Idle Guidelines

Interactive pods enable live development, notebook prototyping, and terminal access to GPU hardware.

Terminal window
kubectl run dev-session \
--namespace sci-myproject \
--image=pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime \
--limits='nvidia.com/gpu=1,cpu=8,memory=32Gi' \
--restart=Never \
-it -- /bin/bash

  1. Clean up when done: Do not leave idle GPU pods running overnight without computations. When finished, exit and delete the pod:
    Terminal window
    kubectl delete pod dev-session -n sci-myproject
  2. Mount Persistent Storage: Always mount a CephFS PVC so your notebooks, code edits, and conda environments persist across pod restarts.
  3. Port Forwarding for Web UIs: If your pod runs TensorBoard, Streamlit, or JupyterLab on port 8888:
    Terminal window
    kubectl port-forward dev-session 8888:8888 -n sci-myproject
    Open http://localhost:8888 on your local laptop to access the interactive web interface securely via encrypted SSH/tunnel.