Skip to main content

kubernetes

Manage Kubernetes clusters via kubectl. Use when deploying, inspecting, or debugging Kubernetes resources.

来源信息

仓库
fworks-tech/agenthood
最近来源活动
2026年9月16日 21:10
检测到的 SKILL.md 语言
英语
星标
3
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
kubernetes
description
Manage Kubernetes clusters via kubectl. Use when deploying, inspecting, or debugging Kubernetes resources.
license
MIT
metadata
{"category":"cloud","dependencies":{"cli":"kubectl","checkCommand":"kubectl version --client","install":{"darwin":"[Truncated]","linux":"[Truncated]","windows":"[Truncated]"}}}
# kubectl Use `kubectl` to interact with Kubernetes clusters. ## Common Commands ### Pods - List pods: `kubectl get pods` - Describe pod: `kubectl describe pod <name>` - Logs: `kubectl logs <pod>` - Exec into pod: `kubectl exec -it <pod> -- /bin/bash` ### Deployments - List deployments: `kubectl get deployments` - Scale: `kubectl scale deployment <name> --replicas=3` - Rollout status: `kubectl rollout status deployment/<name>` - Rollback: `kubectl rollout undo deployment/<name>` ### Services - List services: `kubectl get services` - Expose: `kubectl expose deployment <name> --port=80 --target-port=8080` ### Context - Current context: `kubectl config current-context` - Switch context: `kubectl config use-context <name>` - List contexts: `kubectl config get-contexts` ## Notes - Requires `kubectl` installed and `~/.kube/config` configured - Use `-n <namespace>` to target a specific namespace
在 GitHub 查看