feat(agent): manage demo agents with applicationset
This commit is contained in:
1 parent
144398029f
commit
a67c251486
4 files changed
+62
-29
No files matched your search
@@ -17,3 +17,21 @@ Demo environment:
|
||||
2. Apply or create `bootstrap/mixingx-demo-root.yaml`.
|
||||
3. Argo CD will create/sync the applications under `applications/`.
|
||||
|
||||
Agent fleet:
|
||||
|
||||
- `applications/agents.yaml` is an Argo CD ApplicationSet.
|
||||
- `environments/demo/agent-common-values.yaml` contains shared Helm values for all agents.
|
||||
- Add or remove agent instances by editing `spec.generators[0].list.elements` in `applications/agents.yaml`.
|
||||
- Prefer `nodeLabel` over `nodeName`; label the target node so Kubernetes scheduler can still bind local-path PVCs.
|
||||
|
||||
Example:
|
||||
|
||||
```bash
|
||||
kubectl label node node1 mixingx.io/edge-node=shanghai
|
||||
```
|
||||
|
||||
```yaml
|
||||
- id: shanghai
|
||||
description: Shanghai Agent
|
||||
nodeLabel: shanghai
|
||||
```
|
||||
Reference in new issue
Block a user