Environment Variables
When you create a template and specify the startup command, it is sometimes necessary to know the port mappings, public ip address etc. The following environment variables are available to use in your startup scripts
$PUBLIC_IPADDR Public IP address of the machine hosting your pod
$SSH_PUBLIC_KEY Your ssh public key
$CONTAINER_LABEL The label of the container/Pod, this is also the POD api key
$GPU_COUNT The number of GPUs in your Pod
$QUICKPOD_PORT_XXXX The externally mapped port for your specified internal port XXXX e.g. you mapped with -p 3000:3000 and quickpod mapped the machine port to 41000 then $QUICKPOD_PORT_3000 will give you the value 41000. This is dynamic mapping.
SYMMETRICAL PORTS are ports >= 70000 provided in -p 70000:70000, they map the same internal and external ports and are available through the variable $QUICKPOD_PORT_XXXX (e.g. $QUICKPOD_PORT_70000)
Last updated