Skip to main content

Kubernetes Manager Pack

★Trusted◇Sandbox optionalv1.0.0MIT✔Verified80

by AgentNode · published 6 months 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.

langchaincrewaigeneric

Quick Start

bash
agentnode install kubernetes-manager-pack

Runs in a subprocess with filtered environment by default. Declared permissions are policy-checked, not sandboxed.

Usage

From package
python
from 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

KUBECONFIG

Path 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

high confidence80/100✔ Verified
smokeReturned valid result
+25/25
testsTests failed
0/15
importAll tools imported successfully
+15/15
installInstalled in 2.1s
+15/15
contractAll contract checks passed
+10/10
determinismConsistent output across runs (normalized)
+5/5
reliability3/3 runs passed
+10/10

Package installs and imports correctly. runtime checks passed.

✔install2.1s
✔import3.2s
✔smoke727ms
✖tests1.1s

This package was executed and validated by AgentNode before listing. Install, import, and runtime checks passed.

Verified in real_auto mode

Python 3.12.3ffmpegpopplertesseractuv

Last verified 1d 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

kubernetes_managementk8s_managetool

Permissions

◇Sandbox optionalFrom a trusted publisher — runs on the host by default. You can require isolation with sandbox.host_trust_policy.

Declared by the publisher. Checked before execution by the policy gate.

Networkunrestricted
Filesystemnone
Code Executionnone
Data Accessconnected_accounts
User Approvalalways

Permissions are policy-checked before execution. For trusted and curated packages that run on the host, network and filesystem access are policy-checked but not OS-sandboxed. When runtime isolation is required for untrusted/community code, AgentNode uses sandbox-or-fail-closed if the required container runtime and pinned image are available. 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.

bash
agentnode install kubernetes-manager-pack

Environment Variables

KUBECONFIG

Files (3)

License

MIT

Stats

Downloads0
Installs0
Versionv1.0.0
Published3/16/2026
Channelstable
Typetoolpack
Entrypointkubernetes_manager_pack.tool

Compatibility

Frameworks

langchaincrewaigeneric

Runtime

python

Python Version

>=3.10

Trust & Security

Publisher★Trusted
SignatureNone
ProvenanceNone
Security Issues0

Publisher

A

AgentNode

@agentnode