Agent skill

kubernetes

Manage Kubernetes clusters via the kubectl CLI.

Stars 118
Forks 34

Install this agent skill to your Project

npx add-skill https://github.com/olasunkanmi-SE/codebuddy/tree/main/skills/kubernetes

Metadata

Additional technical details for this skill

auth
{
    "type": "none",
    "setupCommand": "kubectl config view"
}
icon
cloud
config
[
    {
        "name": "KUBECONFIG",
        "type": "string",
        "label": "Kubeconfig Path",
        "required": false,
        "placeholder": "~/.kube/config"
    }
]
version
1.0.0
category
cloud
displayName
Kubernetes
dependencies
{
    "cli": "kubectl",
    "install": {
        "linux": {
            "apt": "kubectl",
            "snap": "kubectl --classic",
            "scriptArch": {
                "x64": "curl -LO \"https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl\" && chmod +x kubectl && sudo mv kubectl /usr/local/bin/",
                "arm64": "curl -LO \"https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/arm64/kubectl\" && chmod +x kubectl && sudo mv kubectl /usr/local/bin/"
            }
        },
        "darwin": {
            "brew": "kubernetes-cli",
            "manual": "Download from https://kubernetes.io/docs/tasks/tools/install-kubectl-macos/",
            "scriptArch": {
                "x64": "curl -LO \"https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/darwin/amd64/kubectl\" && chmod +x kubectl && sudo mv kubectl /usr/local/bin/",
                "arm64": "curl -LO \"https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/darwin/arm64/kubectl\" && chmod +x kubectl && sudo mv kubectl /usr/local/bin/"
            }
        },
        "windows": {
            "choco": "kubernetes-cli",
            "scoop": "kubectl",
            "manual": "Download from https://kubernetes.io/docs/tasks/tools/install-kubectl-windows/",
            "winget": "Kubernetes.kubectl"
        }
    },
    "checkCommand": "kubectl version --client"
}

SKILL.md

kubectl

Use kubectl to interact with Kubernetes clusters.

Common Commands

Pods

  • List pods: kubectl get pods
  • Describe pod: kubectl describe pod <pod-name>
  • Logs: kubectl logs <pod-name>
  • Exec: kubectl exec -it <pod-name> -- /bin/bash

Deployments

  • List deployments: kubectl get deployments
  • Scale: kubectl scale deployment <name> --replicas=3

Services

  • List services: kubectl get services

Context

  • Get context: kubectl config current-context
  • Use context: kubectl config use-context <context-name>

Notes

  • Requires kubectl to be installed and configured (~/.kube/config).

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results