From 0a59d6f26ec183d8dbd74fe6a45989e87efde9c9 Mon Sep 17 00:00:00 2001 From: jenkins Date: Tue, 19 May 2026 20:34:12 -0300 Subject: [PATCH] openclaw: tune triage kubectl guidance --- services/openclaw/configmap.yaml | 5 +++++ services/openclaw/deployment.yaml | 1 + 2 files changed, 6 insertions(+) diff --git a/services/openclaw/configmap.yaml b/services/openclaw/configmap.yaml index 6f09c30e..e8c7da05 100644 --- a/services/openclaw/configmap.yaml +++ b/services/openclaw/configmap.yaml @@ -99,12 +99,17 @@ data: - `kubectl get nodes -o wide` - `kubectl get pods -A -o wide` + - `kubectl get pods -A --field-selector status.phase!=Running,status.phase!=Succeeded -o wide` - `kubectl get events -A --sort-by=.lastTimestamp` - `kubectl -n describe pod ` - `kubectl -n logs --all-containers --tail=200` - `kubectl -n flux-system get kustomizations.kustomize.toolkit.fluxcd.io` - `curl -sS "$VICTORIA_METRICS_URL/api/v1/query?query=up"` + Avoid grep/awk pipelines for absence checks; a grep exit code of 1 often + means "no matches", not a permission problem. Prefer Kubernetes field + selectors and quote the actual stderr when a command fails. + Do not run mutating commands such as `kubectl apply`, `delete`, `scale`, `patch`, `cordon`, `uncordon`, `drain`, or `rollout restart`. Do not read Kubernetes Secret values. Draft repo changes or operator steps instead. diff --git a/services/openclaw/deployment.yaml b/services/openclaw/deployment.yaml index d8120f61..ade0d593 100644 --- a/services/openclaw/deployment.yaml +++ b/services/openclaw/deployment.yaml @@ -20,6 +20,7 @@ spec: app: openclaw annotations: ai.bstein.dev/model: qwen2.5:7b-instruct-q4_0 + ai.bstein.dev/instructions: kubectl-field-selectors ai.bstein.dev/role: testing-triage ai.bstein.dev/placement: gateway lane (titan-20) spec: