Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ kubectl apply -f deploy/k8s/gpuaas-frontend.yaml
Ensure GPU nodes are labeled for Spur:

```bash
kubectl label node gpu-node-01 spur.ai/managed=true
kubectl label node gpu-node-01 spur.ai/gpu-type=mi300x
kubectl label node gpu-node-01 spur.amd.com/managed=true
kubectl label node gpu-node-01 spur.amd.com/gpu-type=mi300x
```

## API
Expand Down
2 changes: 1 addition & 1 deletion crates/spur-cloud-api/src/routes/ws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub async fn terminal_upgrade(
// the status watcher does not capture when it writes pod_name to the DB.
let pods: Api<Pod> = Api::namespaced(kube_client.clone(), &namespace);
let lp = ListParams::default()
.labels(&format!("spur.ai/job-id={}", job_id))
.labels(&format!("spur.amd.com/job-id={}", job_id))
.limit(1);
let pod_name = match pods.list(&lp).await {
Ok(list) => match list.items.into_iter().next().and_then(|p| p.metadata.name) {
Expand Down
9 changes: 6 additions & 3 deletions crates/spur-cloud-api/src/spur_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub struct SpurJobStatus {
/// SpurJob CRD spec — matches the operator's SpurJobSpec.
#[derive(CustomResource, Debug, Clone, Serialize, Deserialize, JsonSchema)]
#[kube(
group = "spur.ai",
group = "spur.amd.com",
version = "v1alpha1",
kind = "SpurJob",
namespaced,
Expand Down Expand Up @@ -95,10 +95,13 @@ pub async fn create_spurjob_crd(params: CreateSpurJobCrdParams<'_>) -> anyhow::R

let mut labels = BTreeMap::new();
labels.insert(
"spur.ai/session-id".to_string(),
"spur.amd.com/session-id".to_string(),
params.session_id.to_string(),
);
labels.insert("spur.ai/managed-by".to_string(), "spur-cloud".to_string());
labels.insert(
"spur.amd.com/managed-by".to_string(),
"spur-cloud".to_string(),
);

let mut env = HashMap::new();
env.insert(
Expand Down
2 changes: 1 addition & 1 deletion deploy/k8s/gpuaas-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ rules:
resources: ["services"]
verbs: ["get", "list", "create", "delete"]
# For SpurJob CRDs
- apiGroups: ["spur.ai"]
- apiGroups: ["spur.amd.com"]
resources: ["spurjobs"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
---
Expand Down
Loading