Skip to content

Commit

Permalink
Report GPU pods using default scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
tardieu committed Dec 20, 2024
1 parent 1decf1a commit ca16554
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/cluster-checker/checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,14 @@ async function checkUserNamespace (client, namespace, queues) {
}
}
}

// report GPU pods using default scheduler
const pods = await client.pods(namespace.metadata.name)
for (const pod of pods) {
if (pod.spec.schedulerName === 'default-scheduler' && reservation(pod) > 0) {
console.log(`WARNING: pod "${namespace.metadata.name}/${pod.metadata.name}" is using default-scheduler`)
}
}
}

// check system namespace
Expand Down

0 comments on commit ca16554

Please sign in to comment.