Kubectl-ai | MaxIterations Question | Bedrock Bug
Author: rglemeCreated Oct 25, 2025Updated Apr 8, 2026
Labelsbug
Hello
When I am running any command inside kubectl-ai, it tries to run multiple times until maxIterations is reached. No matter how I change maxIterations value. How can I only get the value intended ?
Thank you
kubectl-ai
Hey there, what can I help you with today?
>>> list running pods
Running: kubectl get pods
Running: kubectl get namespaces
Running: kubectl get nodes
Running: kubectl get storageclass
Running: kubectl get pods --namespace default
Running: kubectl get pods --all-namespaces
Running: kubectl get services
Running: kubectl get deployment
Running: kubectl get pv
Running: kubectl get pvc
Maximum number of iterations reached.My config file
llmProvider: bedrock
model: us.anthropic.claude-sonnet-4-20250514-v1:0
maxIterations: 10Source: GoogleCloudPlatform/kubectl-ai