Dev Pod Configurations
Learn how to configure your dev pod in Lepton.
When creating a dev pod, you can configure resources, the container, and other options.
Resource
- Node Group: First, select one or more node groups to determine which resources the pod can use.
- Priority: Set the priority of the pod (defaults to Medium (4)). If the specified node group has limited resources, you can raise the priority to get higher priority allocation.
- Resource shape: The instance type the pod will run on. Select from a variety of CPU and GPU shapes. Refer to Node Group Shapes for more details.
- Nodes: No specific nodes are selected by default, but you can target particular nodes to launch the pod on.
- Can preempt lower priority workload: Whether the pod can preempt lower-priority workloads (defaults to false).
- Can be preempted by higher priority workload: Whether the pod can be preempted by higher-priority workloads (defaults to false).
Container
- Image: The container image used to create the pod. Choose from default images or use your own custom image.
- SSH Public Key: The SSH public key used to access the pod. Available for default images with Dev Pod entrypoint. See this guide for details.
- Enable JupyterLab: Whether to enable JupyterLab in the pod (defaults to false). Available for default images with Dev Pod entrypoint. See this guide for details.
- Private image registry auth (optional): If you are using a private image, specify image registry credentials.
- Entrypoint (Run Command): Entrypoint of the Dev Pod container. Choose from:
- Dev Pod entrypoint: Automatically applies a run command based on the selected image.
- Image default entrypoint: Uses the image's default run command.
- Custom entrypoint: Specify a custom entrypoint for the container. This overrides the default entrypoint.
- Run as: When using a custom image, choose to run the container as root or the image's default user (defaults to image default user).
- Container Ports: Ports to expose from the container (maximum of 3). See this guide for details.
- Enable SSH Host Network: Whether to enable SSH Host Network port configuration (defaults to false). Available for default images with Dev Pod entrypoint. See this guide for details.
- Enable JupyterLab Proxy: Whether to enable JupyterLab Proxy port configuration (defaults to false). Available for default images with Dev Pod entrypoint. See this guide for details.
Storage
Mount storage for the pod container. See this guide for details.
Advanced
- Log Collection: Whether to collect logs from the container (follows the workspace-level setting by default).
- Shared Memory: The size of shared memory allocated to the container.
- Archive time: How long to keep the job's logs and artifacts after completion (defaults to 3 days).
- Visibility: If set to private, only the creator can access the job. If set to public, all users in the workspace can access the job.
- Environment Variables: Key–value pairs passed to the pod container for use at runtime.