#When creating pod via Runpod API. How to set it should have SSH over TCP exposed ?

9 messages · Page 1 of 1 (latest)

hot berry
#

pod = runpod.create_pod(
name="TEST_POD_",
image_name="runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404",
gpu_type_id="NVIDIA GeForce RTX 5090",
volume_in_gb=30,
container_disk_in_gb=50,
network_volume_id="xxxxx",
start_ssh=True,
support_public_ip=True,
)

ashen parcelBOT
obsidian gyroBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

alpine summit
#

SET:
ports: ["22/tcp", ...] supportPublicIp: true (if using Community Cloud)

#

so your example JSON payload would be ..

#

{ "name": "TESTPOD", "imageName": "runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404", "gpuTypeId": "NVIDIA GeForce RTX 5090", "volumeInGb": 30, "containerDiskInGb": 50, "networkVolumeId": "xxxxx", "ports": ["22/tcp"], "supportPublicIp": true }

#

let me know if you need help with python SDK wrapper

#

but i am sure you can take it from here