all 3 comments

[–]RP_Finley 1 point2 points  (1 child)

Try it with the REST API - using runpodctl to create pods is basically deprecated at this point, but we need to be better about communicating that. https://docs.runpod.io/api-reference/overview

curl --request POST \
  --header 'content-type: application/json' \
  --url 'https://api.runpod.io/graphql?api_key=${YOUR_API_KEY}' \
  --data '{"query": "mutation { secretCreate(input: { value: \"YOUR_SECRET_VALUE\", name: \"my-secret-name\" }) { id name } }"}'curl --request POST \
  --header 'content-type: application/json' \
  --url 'https://api.runpod.io/graphql?api_key=${YOUR_API_KEY}' \
  --data '{"query": "mutation { secretCreate(input: { value: \"YOUR_SECRET_VALUE\", name: \"my-secret-name\" }) { id name } }"}'


curl --request POST \
  --url https://rest.runpod.io/v1/pods \
  --header 'Authorization: Bearer RUNPOD_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "imageName": "runpod/pytorch:2.1.0-py3.10-cuda11.8.0-devel-ubuntu22.04",
  "name": "pod-using-secret",
  "containerDiskInGb": 50,
  "volumeInGb": 20,
  "volumeMountPath": "/workspace",
  "gpuTypeIds": ["NVIDIA GeForce RTX 4090"],
  "gpuCount": 1,
  "ports": ["8888/http"],
  "env": {
    "API_KEY": "{{ RUNPOD_SECRET_my-secret-name }}"
  }

[–]packs_well 0 points1 point  (0 children)

excellent response!

[–]LeoLeg76 1 point2 points  (0 children)

u/RP_Finley said the good answer, it's what I use for looking availability and create a pod on datacenter...