Skip to content

Agent Mesh

deploy, chart: requests without limits, and a router VM with a core

Antonio Ojea435e9ad17554
diff --git a/.github/k8s/agentmesh-console-template.yaml b/.github/k8s/agentmesh-console-template.yaml
index 53c8343b..ecee0937 100644
--- a/.github/k8s/agentmesh-console-template.yaml
+++ b/.github/k8s/agentmesh-console-template.yaml
@@ -48,6 +48,3 @@ spec:
requests:
cpu: 10m
memory: 32Mi
- limits:
- cpu: 100m
- memory: 128Mi
diff --git a/.github/k8s/agentmesh-control-plane-template.yaml b/.github/k8s/agentmesh-control-plane-template.yaml
index 54190984..c1493017 100644
--- a/.github/k8s/agentmesh-control-plane-template.yaml
+++ b/.github/k8s/agentmesh-control-plane-template.yaml
@@ -136,9 +136,6 @@ spec:
requests:
cpu: 100m
memory: 128Mi
- limits:
- cpu: 500m
- memory: 512Mi
---
apiVersion: networking.gke.io/v1
kind: HealthCheckPolicy
diff --git a/.github/k8s/agentmesh-node-everything-template.yaml b/.github/k8s/agentmesh-node-everything-template.yaml
index c3e2e474..903a72cb 100644
--- a/.github/k8s/agentmesh-node-everything-template.yaml
+++ b/.github/k8s/agentmesh-node-everything-template.yaml
@@ -44,9 +44,6 @@ spec:
requests:
cpu: 50m
memory: 64Mi
- limits:
- cpu: 200m
- memory: 256Mi
- name: agentmesh-node
image: ghcr.io/google/agentmesh-node:${IMAGE_TAG}
env:
@@ -68,9 +65,6 @@ spec:
requests:
cpu: 50m
memory: 64Mi
- limits:
- cpu: 200m
- memory: 256Mi
volumeMounts:
- name: config-volume
mountPath: /etc/agentmesh
diff --git a/.github/k8s/agentmesh-node-openclaw-template.yaml b/.github/k8s/agentmesh-node-openclaw-template.yaml
index 6b600de4..7f0c00de 100644
--- a/.github/k8s/agentmesh-node-openclaw-template.yaml
+++ b/.github/k8s/agentmesh-node-openclaw-template.yaml
@@ -92,9 +92,6 @@ spec:
requests:
cpu: 100m
memory: 256Mi
- limits:
- cpu: 500m
- memory: 1Gi
volumeMounts:
- name: openclaw-data
mountPath: /data
@@ -124,9 +121,6 @@ spec:
requests:
cpu: 50m
memory: 64Mi
- limits:
- cpu: 200m
- memory: 256Mi
volumeMounts:
- name: config-volume
mountPath: /etc/agentmesh
diff --git a/.github/k8s/agentmesh-node-vllm-template.yaml b/.github/k8s/agentmesh-node-vllm-template.yaml
index 1dbed188..018684e4 100644
--- a/.github/k8s/agentmesh-node-vllm-template.yaml
+++ b/.github/k8s/agentmesh-node-vllm-template.yaml
@@ -117,9 +117,6 @@ spec:
requests:
cpu: 50m
memory: 64Mi
- limits:
- cpu: 200m
- memory: 256Mi
volumeMounts:
- name: config-volume
mountPath: /etc/agentmesh
diff --git a/.github/k8s/agentmesh-probe-cronjob-template.yaml b/.github/k8s/agentmesh-probe-cronjob-template.yaml
index 006da076..adac15a0 100644
--- a/.github/k8s/agentmesh-probe-cronjob-template.yaml
+++ b/.github/k8s/agentmesh-probe-cronjob-template.yaml
@@ -56,9 +56,6 @@ spec:
requests:
cpu: 50m
memory: 64Mi
- limits:
- cpu: 200m
- memory: 256Mi
volumeMounts:
- name: config-volume
mountPath: /etc/agentmesh
@@ -93,9 +90,6 @@ spec:
requests:
cpu: 50m
memory: 128Mi
- limits:
- cpu: 500m
- memory: 512Mi
volumeMounts:
- name: agentmesh-token
mountPath: /var/run/secrets/tokens
@@ -125,9 +119,6 @@ spec:
requests:
cpu: 50m
memory: 128Mi
- limits:
- cpu: 500m
- memory: 512Mi
volumeMounts:
- name: agentmesh-token
mountPath: /var/run/secrets/tokens
@@ -157,9 +148,6 @@ spec:
requests:
cpu: 10m
memory: 16Mi
- limits:
- cpu: 100m
- memory: 64Mi
volumeMounts:
- name: agentmesh-uds
mountPath: /var/run/agentmesh
diff --git a/.github/k8s/agentmesh-router-template.yaml b/.github/k8s/agentmesh-router-template.yaml
index e5ee17db..ee8e8533 100644
--- a/.github/k8s/agentmesh-router-template.yaml
+++ b/.github/k8s/agentmesh-router-template.yaml
@@ -97,9 +97,6 @@ spec:
requests:
cpu: 100m
memory: 128Mi
- limits:
- cpu: 500m
- memory: 512Mi
volumeMounts:
- name: agentmesh-token
mountPath: /var/run/secrets/tokens
diff --git a/.github/k8s/agentmesh-sdk-canary-template.yaml b/.github/k8s/agentmesh-sdk-canary-template.yaml
index 2d877781..d3837ab9 100644
--- a/.github/k8s/agentmesh-sdk-canary-template.yaml
+++ b/.github/k8s/agentmesh-sdk-canary-template.yaml
@@ -50,9 +50,6 @@ spec:
requests:
cpu: 50m
memory: 128Mi
- limits:
- cpu: 500m
- memory: 512Mi
volumeMounts:
- name: agentmesh-token
mountPath: /var/run/secrets/tokens
@@ -91,9 +88,6 @@ spec:
requests:
cpu: 50m
memory: 128Mi
- limits:
- cpu: 500m
- memory: 512Mi
volumeMounts:
- name: agentmesh-token
mountPath: /var/run/secrets/tokens
@@ -158,9 +152,6 @@ spec:
requests:
cpu: 50m
memory: 128Mi
- limits:
- cpu: 500m
- memory: 512Mi
volumeMounts:
- name: agentmesh-token
mountPath: /var/run/secrets/tokens
@@ -197,9 +188,6 @@ spec:
requests:
cpu: 50m
memory: 128Mi
- limits:
- cpu: 500m
- memory: 512Mi
volumeMounts:
- name: agentmesh-token
mountPath: /var/run/secrets/tokens
diff --git a/.github/k8s/agentmesh-sdk-probe-cronjob-template.yaml b/.github/k8s/agentmesh-sdk-probe-cronjob-template.yaml
index 149806ae..93943650 100644
--- a/.github/k8s/agentmesh-sdk-probe-cronjob-template.yaml
+++ b/.github/k8s/agentmesh-sdk-probe-cronjob-template.yaml
@@ -64,9 +64,6 @@ spec:
requests:
cpu: 50m
memory: 128Mi
- limits:
- cpu: 500m
- memory: 512Mi
volumeMounts:
- name: agentmesh-token
mountPath: /var/run/secrets/tokens
@@ -96,9 +93,6 @@ spec:
requests:
cpu: 50m
memory: 128Mi
- limits:
- cpu: 500m
- memory: 512Mi
volumeMounts:
- name: agentmesh-token
mountPath: /var/run/secrets/tokens
@@ -134,9 +128,6 @@ spec:
requests:
cpu: 50m
memory: 128Mi
- limits:
- cpu: 500m
- memory: 512Mi
volumeMounts:
- name: agentmesh-token
mountPath: /var/run/secrets/tokens
@@ -176,9 +167,6 @@ spec:
requests:
cpu: 50m
memory: 128Mi
- limits:
- cpu: 500m
- memory: 512Mi
volumeMounts:
- name: agentmesh-token
mountPath: /var/run/secrets/tokens
diff --git a/.github/k8s/agentmesh-soak-template.yaml b/.github/k8s/agentmesh-soak-template.yaml
index 5693890a..c11055f3 100644
--- a/.github/k8s/agentmesh-soak-template.yaml
+++ b/.github/k8s/agentmesh-soak-template.yaml
@@ -82,9 +82,6 @@ spec:
requests:
cpu: 20m
memory: 64Mi
- limits:
- cpu: 200m
- memory: 256Mi
volumeMounts:
- name: config-volume
mountPath: /etc/agentmesh
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml
index 197b14a9..0a31fe1d 100644
--- a/.github/workflows/deploy.yaml
+++ b/.github/workflows/deploy.yaml
@@ -572,11 +572,14 @@ jobs:
gcloud compute instances delete sam-router-${ENV_NAME}-vm --zone=${ZONE} --project=${GCP_PROJECT_ID} --quiet || true
gcloud compute instances delete agentmesh-router-${ENV_NAME}-vm --zone=${ZONE} --project=${GCP_PROJECT_ID} --quiet || true
- # Create a new COS VM instance running the agentmesh-router
+ # Create a new COS VM instance running the agentmesh-router. The
+ # router is a hub: with 1 GB and a shared core an e2-micro refused
+ # handshakes while a fleet joined through it (libp2p sized its
+ # stream limits from the memory it saw and the core was at 100%).
gcloud compute instances create agentmesh-router-${ENV_NAME}-vm \
--project=${GCP_PROJECT_ID} \
--zone=${ZONE} \
- --machine-type=e2-micro \
+ --machine-type=e2-small \
--image-family=cos-stable \
--image-project=cos-cloud \
--tags=sam-router,agentmesh-router \
@@ -601,7 +604,8 @@ jobs:
--listen=/ip4/0.0.0.0/tcp/4501 \
--listen=/ip4/0.0.0.0/udp/4501/quic-v1 \
--external-addr=/ip4/${EXTERNAL_IP}/tcp/4501 \
- --external-addr=/ip4/${EXTERNAL_IP}/udp/4501/quic-v1'
+ --external-addr=/ip4/${EXTERNAL_IP}/udp/4501/quic-v1 \
+ --metrics-addr=127.0.0.1:9090'
- name: Deploy OpenClaw Canary
env:
diff --git a/charts/agentmesh/templates/router-statefulset.yaml b/charts/agentmesh/templates/router-statefulset.yaml
index db9c089b..2cded719 100644
--- a/charts/agentmesh/templates/router-statefulset.yaml
+++ b/charts/agentmesh/templates/router-statefulset.yaml
@@ -55,9 +55,6 @@ spec:
requests:
cpu: 10m
memory: 16Mi
- limits:
- cpu: 100m
- memory: 64Mi
command: ["/bin/sh", "-c"]
args:
- |
diff --git a/charts/agentmesh/values.yaml b/charts/agentmesh/values.yaml
index bdd2dc12..86acf8ac 100644
--- a/charts/agentmesh/values.yaml
+++ b/charts/agentmesh/values.yaml
@@ -68,9 +68,6 @@ controlPlane:
requests:
cpu: 100m
memory: 128Mi
- limits:
- cpu: 500m
- memory: 512Mi
service:
type: ClusterIP
port: 8080
@@ -116,9 +113,6 @@ database:
requests:
cpu: 100m
memory: 256Mi
- limits:
- cpu: 1000m
- memory: 1Gi
router:
enabled: true
@@ -167,9 +161,6 @@ router:
requests:
cpu: 100m
memory: 128Mi
- limits:
- cpu: 500m
- memory: 512Mi
service:
type: ClusterIP
port: 4501
@@ -204,9 +195,6 @@ console:
requests:
cpu: 50m
memory: 64Mi
- limits:
- cpu: 250m
- memory: 256Mi
service:
type: ClusterIP
port: 8081