Kubernetes Manager Pack

Trustedv1.0.0MITVerified88

by AgentNode · published 22 days 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

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)

Verification

high confidence88/100✔ Verified
smokeReturned valid result
+25/25
testsAuto-generated tests only
+8/15
importAll tools imported successfully
+15/15
installInstalled in 2.3s
+15/15
contractAll contract checks passed
+10/10
warningsNo warnings
0/0
determinismOutput consistency check
+5/5
reliability3/3 runs passed
+10/10

Package installs and imports correctly. runtime checks passed.

install2.3s
import3.4s
smoke754ms
tests1.8s

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

Python 3.12.3ffmpegpopplertesseractuv

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

Kubernetes Manager Pack

Manage Kubernetes pods, deployments, and services. Full cluster management including pod inspection, scaling, log retrieval, and manifest application.

Quick Start

agentnode install kubernetes-manager-pack
from kubernetes_manager_pack.tool import run

result = run(
    action="k8s_manage",
    operation="list_pods",
    namespace="default"
)
for pod in result["pods"]:
    print(f"{pod['name']}{pod['status']}")

Usage

Get Pod Logs

result = run(
    action="k8s_manage",
    operation="get_logs",
    namespace="production",
    pod_name="api-server-7b4f9c-xk2lm",
    tail_lines=100
)
print(result["log_output"])

Scale a Deployment

run(
    action="k8s_manage",
    operation="scale_deployment",
    namespace="production",
    deployment="web-frontend",
    replicas=3
)

Apply a Manifest

result = run(
    action="k8s_manage",
    operation="apply_manifest",
    manifest_path="/data/k8s/deployment.yaml",
    namespace="staging"
)
print(f"Applied: {result['kind']}/{result['name']}")

API Reference

CapabilityDescription
k8s_manageFull Kubernetes cluster management via the API

Operations: list_pods, get_logs, scale_deployment, rollout_status, apply_manifest, rollback, list_services, get_configmap, describe_pod

Requirements

VariableRequiredDescription
KUBECONFIGNoPath to kubeconfig file (defaults to ~/.kube/config)

License

MIT

Version History

Capabilities

kubernetes_managementk8s_managetool

Permissions

This package declares the following access levels. Review before installing.

Networkunrestricted
Filesystemnone
Code Executionnone
Data Accessconnected_accounts
User Approvalalways
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

PublisherTrusted
SignatureNone
ProvenanceNone
Security Issues0

Publisher

A

AgentNode

@agentnode