kostas
kostas
RRunPod
Created by kostas on 8/16/2024 in #⛅|pods
I'm trying to start a cpu pod using the graphql endpoint and specifying an image
Hey, I've succesfully ran a cpu pod creation using the graphql endpoint, however, it does not seem to follow the same structure as the gpu creation. What I'm trying which is working is:
mutation {
deployCpuPod( input: {
cloudType: SECURE,
containerDiskInGb: 15,
dataCenterId: null,
instanceId: "cpu3c-2-4",
networkVolumeId: null,
startJupyter: true,
startSsh: true,
templateId: "runpod-ubuntu",
volumeKey: null,
env: [{key: "a", value: "1"}, {key: "b", value: "2"}]
}) { id, machineId }
}
mutation {
deployCpuPod( input: {
cloudType: SECURE,
containerDiskInGb: 15,
dataCenterId: null,
instanceId: "cpu3c-2-4",
networkVolumeId: null,
startJupyter: true,
startSsh: true,
templateId: "runpod-ubuntu",
volumeKey: null,
env: [{key: "a", value: "1"}, {key: "b", value: "2"}]
}) { id, machineId }
}
However if I remove the templateId and use imageName instead I get:
INTERNAL_SERVER_ERROR
INTERNAL_SERVER_ERROR
Has anyone tried this before? I know it's not a fully supported endpoint yet, but I would love to see what others have done.
2 replies