Repository navigation
Commit 397c6ec
committed
feat(k8s): add ACP Service for k8s-runtime agents (studio#155)
Create a ClusterIP Service next to the Deployment whenever
spec.acp_enabled is set, making the pod's /acp port addressable
inside the cluster. The Service uses the same labels as the
Deployment's pod template so its selector always matches.
- build_acp_service: constructs the ClusterIP Service (returns None
when acp_enabled is off, so the Service isn't created for non-ACP
agents)
- acp_service_reconcile: plans Apply vs Prune so a redeploy that
flips acp_enabled off tears down the stale Service
- k8s_acp_url: returns the in-cluster ws:// URL that agents.toml dials
- apply: runs the reconcile after the Deployment succeeds
- delete: removes the Service alongside the Deployment
Refs #1551 parent 0f1b62d commit 397c6ec
3 files changed
Lines changed: 370 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
0 commit comments