@@ -168,13 +168,13 @@ helm lint .
168168
169169``` bash
170170# Upgrade only the gateway image
171- ahelm upgrade mcp-stack . -n mcp \
171+ ahelm upgrade mcp-stack . -n mcp-private \
172172 --set mcpContextForge.image.tag=v1.2.3 \
173173 --wait
174174
175175# Preview changes (requires helm‑diff plugin)
176176helm plugin install https://github.com/databus23/helm-diff
177- helm diff upgrade mcp-stack . -n mcp -f my-values.yaml
177+ helm diff upgrade mcp-stack . -n mcp-private -f my-values.yaml
178178
179179# Roll back to revision 1
180180helm rollback mcp-stack 1 -n mcp
@@ -376,7 +376,7 @@ helm upgrade --install mcp-stack charts/mcp-stack \
376376
377377# Later: raise the ceiling & make scaling more aggressive
378378helm upgrade mcp-stack charts/mcp-stack \
379- -n mcp \
379+ -n mcp-private \
380380 --reuse-values \
381381 --set mcpContextForge.hpa.maxReplicas=20 \
382382 --set mcpContextForge.hpa.targetCPUUtilizationPercentage=60 \
@@ -391,12 +391,12 @@ Useful in emergencies or during load tests.
391391
392392``` bash
393393# Bump minReplicas from 3 → 5
394- kubectl patch hpa mcp-stack-mcpgateway -n mcp \
394+ kubectl patch hpa mcp-stack-mcpgateway -n mcp-private \
395395 --type merge \
396396 -p ' {"spec":{"minReplicas":5}}'
397397
398398# Drop the CPU target from 80 % → 65 % (scale up sooner)
399- kubectl patch hpa mcp-stack-mcpgateway -n mcp \
399+ kubectl patch hpa mcp-stack-mcpgateway -n mcp-private \
400400 --type json \
401401 -p ' [{"op":"replace","path":"/spec/metrics/0/resource/target/averageUtilization","value":65}]'
402402```
@@ -421,6 +421,25 @@ NAME TARGETS MINPODS MAXPODS REPLICAS
421421mcp-stack-mcpgateway 55%/70% 2 15 4
422422```
423423
424+ ### Check scaling events
425+
426+ ``` bash
427+ # 1. Show the last few scale-up / scale-down events
428+ kubectl describe hpa mcp-stack-mcpgateway -n mcp-private | tail -n 20
429+
430+ # 2. Stream HPA events as they happen
431+ kubectl get events -n mcp-private \
432+ --field-selector involvedObject.kind=HorizontalPodAutoscaler,\
433+ involvedObject.name=mcp-stack-mcpgateway \
434+ --watch
435+
436+ # 3. Watch target utilisation & replica count refresh every 2 s
437+ watch -n2 kubectl get hpa mcp-stack-mcpgateway -n mcp-private
438+
439+ # 4. Live pod-level CPU / memory (confirm the numbers the HPA sees)
440+ kubectl top pods -l app=mcp-stack-mcpgateway -n mcp-private --sort-by=cpu
441+ ```
442+
424443---
425444
426445### Prerequisites & Gotchas
0 commit comments