AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Use Eks Via Call Kubectl

skill-aws-samples-sample-skills-for-aws-devops-agent-use-eks-via-call-kubectl · by aws-samples

Use when any task involves inspecting EKS pod status, pod events,

— No reviews yet
0 installs
30 views
0.0% view→install

Install

$ agentstack add skill-aws-samples-sample-skills-for-aws-devops-agent-use-eks-via-call-kubectl

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • ✓ Prompt-injection patterns
  • ✓ Secret / credential exfiltration
  • ✓ Dangerous shell & filesystem operations
  • ✓ Untrusted network calls
  • ✓ Known-malicious package signatures

What it can access

  • ✓ Network access No
  • ✓ Filesystem access No
  • ✓ Shell / process execution No
  • ✓ Environment & secrets No
  • ✓ Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-aws-samples-sample-skills-for-aws-devops-agent-use-eks-via-call-kubectl)

Reliability & compatibility

✓ Security review passed
0 installs to date
— no reviews yet
● 4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Use Eks Via Call Kubectl? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

EKS Inspection via call_kubectl (China Region)

Why use_kubectl fails here

use_kubectl is a platform-level tool with a hardcoded account allowlist limited to the global (aws) partition. The cluster bjs-web lives in account 107422471498, cn-north-1 (aws-cn partition). Token-based EKS authentication cannot cross partition boundaries.

Do not retry use_kubectl with any account ID. It will never work.

The correct tool: call_kubectl

The aws-cn-2 MCP server exposes a call_kubectl tool alongside call_aws. Same connection, same endpoint — no additional MCP server needed.

Allowed verbs: get, describe, logs, top, explain, version, cluster-info, api-resources, api-versions

Write verbs (apply, delete, patch, exec, etc.) are blocked by the tool itself — output them as a draft command for human approval instead.

Common substitutions

| Original intent | Use this instead | |---|---| | kubectl get pods -n bjs-web -o wide | call_kubectl("kubectl get pods -n bjs-web -o wide") | | kubectl describe pod -n bjs-web | call_kubectl("kubectl describe pod -n bjs-web") | | kubectl logs -n bjs-web --since=1h | call_kubectl("kubectl logs -n bjs-web --since=1h") | | kubectl get events -n bjs-web --sort-by=.lastTimestamp | call_kubectl("kubectl get events -n bjs-web --sort-by=.lastTimestamp") | | kubectl get deployments -n bjs-web | call_kubectl("kubectl get deployments -n bjs-web") |

Standard incident investigation sequence

For a pod-not-ready alarm on bjs-web:

# 1. Pod overview
call_kubectl("kubectl get pods -n bjs-web -o wide")

# 2. For any non-Running pod, describe it
call_kubectl("kubectl describe pod  -n bjs-web")

# 3. Events (sorted by time)
call_kubectl("kubectl get events -n bjs-web --sort-by=.lastTimestamp")

# 4. Deployment status
call_kubectl("kubectl get deployments -n bjs-web")

# 5. Logs if pod is running or was recently running
call_kubectl("kubectl logs  -n bjs-web --since=30m")

Failure pattern quick reference

| What you see in describe/events | Root cause | |---|---| | ImagePullBackOff / ErrImagePull | Image tag does not exist in ECR — fault L6 | | OOMKilled | Memory limit hit — fault L9 neighbourhood | | CrashLoopBackOff | Container exits — check logs next | | Insufficient cpu / Insufficient memory | Node resource exhausted | | FailedScheduling | No schedulable node |

Things not to do

  • Do not call use_kubectl for China-region EKS. Ever.
  • Do not add a new MCP server for kubectl access — call_kubectl already

lives inside the existing aws-cn-2 connection.

  • Do not use call_aws + CloudWatch as a kubectl substitute — call_kubectl

gives direct Kubernetes API access and is more accurate.

  • Do not issue write verbs via call_kubectl — they are blocked. Draft

the remediation command and request human approval via the mitigation skill.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.