REVERT(app): restore execute_bash to execute_host
- Fix kubectl execution failure inside Pod - Use nsenter to access host kubectl - Keep natural language responses and storage/memory distinction
This commit is contained in:
@@ -14,5 +14,5 @@ commonLabels:
|
|||||||
# 이미지 태그 설정 (ArgoCD Image Updater가 자동으로 업데이트)
|
# 이미지 태그 설정 (ArgoCD Image Updater가 자동으로 업데이트)
|
||||||
images:
|
images:
|
||||||
- name: gitea0213.kro.kr/bluemayne/mas
|
- name: gitea0213.kro.kr/bluemayne/mas
|
||||||
newTag: main-sha-de29acaace047feffd9c49df79e7790b36aef91f
|
newTag: main-sha-4540d656562ef88176191cf8e9662a63e1176657
|
||||||
|
|
||||||
|
|||||||
@@ -37,11 +37,11 @@ User wants deployment decision
|
|||||||
- Provide structured findings
|
- Provide structured findings
|
||||||
|
|
||||||
## Request commands in JSON:
|
## Request commands in JSON:
|
||||||
{"commands": [{"tool": "execute_bash", "command": "kubectl get nodes"}]}
|
{"commands": [{"tool": "execute_host", "command": "kubectl get nodes", "use_sudo": true}]}
|
||||||
|
|
||||||
Rules:
|
Rules:
|
||||||
- Request 1-2 commands at a time
|
- Request 1-2 commands at a time
|
||||||
- Use execute_bash for kubectl commands (kubectl is installed in the container)
|
- Use execute_host for kubectl commands (with use_sudo: true)
|
||||||
- Output ONLY JSON when requesting commands
|
- Output ONLY JSON when requesting commands
|
||||||
- For storage queries, use: kubectl get pvc, df -h, du -sh
|
- For storage queries, use: kubectl get pvc, df -h, du -sh
|
||||||
- For memory queries, use: kubectl top nodes, kubectl top pods
|
- For memory queries, use: kubectl top nodes, kubectl top pods
|
||||||
|
|||||||
Reference in New Issue
Block a user