Skip to content

Commit d8d9820

Browse files
authored
Auto-apply RBAC at cluster start and improve CoreWeave docs (#2983)
Fixes up the docs to cover more of the coreweave workflow and removes some extra yaml. - `iris cluster start` now auto-applies RBAC (Namespace, ServiceAccount, ClusterRole, ClusterRoleBinding) via `ensure_rbac()`, removing the manual `kubectl apply` prerequisite - Deleted standalone YAML manifests from `infra/coreweave/k8s/` (now expressed as Python dicts in `CoreweavePlatform`) - Rewrote `lib/iris/docs/coreweave.md` with new sections: Tools (cwic/kubectl/Grafana), RBAC permissions table, config reference, instance type naming, early failure detection, env vars, timeouts, and troubleshooting
1 parent 1b10a6f commit d8d9820

File tree

8 files changed

+339
-113
lines changed

8 files changed

+339
-113
lines changed

infra/coreweave/k8s/cluster-role-binding.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

infra/coreweave/k8s/cluster-role.yaml

Lines changed: 0 additions & 17 deletions
This file was deleted.

infra/coreweave/k8s/namespace.yaml

Lines changed: 0 additions & 4 deletions
This file was deleted.

infra/coreweave/k8s/service-account.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

lib/iris/AGENTS.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,10 @@ it as `/var/lib/containerd`, `/var/lib/kubelet`, `/opt`, etc. The `cache_dir` mu
167167
NVMe (e.g. `/mnt/local/iris-cache`) — the default `/var/cache/iris` lands on the tiny RAM disk
168168
and will fill up immediately when installing CUDA packages.
169169

170-
**K8s manifests** (`infra/coreweave/k8s/`):
171-
- `namespace.yaml`, `service-account.yaml`, `cluster-role.yaml`, `cluster-role-binding.yaml` — RBAC/namespace prerequisites (one-time operator setup)
172-
173-
Controller lifecycle resources (ConfigMap, shared NodePools, Deployment, Service) are created
174-
automatically by `iris cluster start` via `CoreweavePlatform.start_controller()`.
170+
All K8s resources (RBAC, ConfigMap, shared NodePools, Deployment, Service) are created
171+
automatically by `iris cluster start` via `CoreweavePlatform.start_controller()`. RBAC
172+
manifests (Namespace, ServiceAccount, ClusterRole, ClusterRoleBinding) are defined in
173+
`CoreweavePlatform.ensure_rbac()` — no separate YAML files needed.
175174

176175
## Key Modules
177176

0 commit comments

Comments
 (0)