Kubernetes Manager Pack
★Trustedv1.0.0MIT★Gold Verified95by AgentNode · published 1 month ago · toolpack
Manage Kubernetes pods, deployments, and services.
Interact with K8s clusters to list pods, scale deployments, view logs, and manage resources via the official kubernetes-client.
Quick Start
agentnode install kubernetes-manager-packRuns in a subprocess with filtered environment by default. Declared permissions are policy-checked, not sandboxed.
Usage
From packagefrom kubernetes_manager_pack.tool import run
# List pods in the production namespace
result = run(
action="k8s_manage",
operation="list_pods",
namespace="production",
label_selector="app=api-gateway"
)
for pod in result["pods"]:
print(f"{pod['name']:45s} {pod['status']:12s} Restarts: {pod['restart_count']}")
# Get logs from a failing pod
failing_pods = [p for p in result["pods"] if p["status"] == "CrashLoopBackOff"]
if failing_pods:
logs = run(
action="k8s_manage",
operation="get_logs",
namespace="production",
pod_name=failing_pods[0]["name"],
tail_lines=50,
previous=True
)
print(f"\nLast 50 lines from crashed container:")
print(logs["log_output"])Environment Variables
KUBECONFIGPath to kubeconfig file (defaults to ~/.kube/config if not set)
Runs locally on your machine. No execution data is sent to AgentNode. Permissions are checked before execution. Learn how this works
Verification
Package installs and imports correctly. runtime checks passed. publisher tests passed.
This package was executed and validated by AgentNode before listing. Install, import, and runtime checks passed.
Last verified 13d ago· Runner v2.0.0
Use this when you need to...
- ›List and inspect pods across namespaces for health monitoring
- ›Scale deployments up or down based on traffic metrics
- ›View pod logs and diagnose CrashLoopBackOff errors
- ›Apply and roll back Kubernetes manifests for deployments
- ›Manage services, ingresses, and config maps programmatically
README
Version History
Capabilities
Permissions
Declared by the publisher. Checked before execution by the policy gate.
Permissions are policy-checked before execution. Network and filesystem access are not sandboxed at runtime. Learn more
Privacy
All tool execution happens locally on your machine. AgentNode never receives:
- • Tool inputs or outputs
- • Execution logs
- • Data your agent processes
Only install events and search queries are sent to the registry.
agentnode install kubernetes-manager-packEnvironment Variables
KUBECONFIGFiles (3)
License
MITStats
Compatibility
Frameworks
Runtime
pythonPython Version
>=3.10Trust & Security
Publisher
AgentNode
@agentnode