来源信息
- 仓库
- olasunkanmi-SE/codebuddy
- 最近来源活动
- 2026年3月8日 03:01
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 141
- 分支
- 44
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- kubernetes
- description
- Manage Kubernetes clusters via the kubectl CLI.
- metadata
- {"displayName":"Kubernetes","icon":"cloud","category":"cloud","version":"1.0.0","dependencies":{"cli":"kubectl","checkCommand":"kubectl version --client","install":{"darwin":"[Truncated]","linux":"[Truncated]","windows":"[Truncated]"}},"config":[{"name":"KUBECONFIG","label":"Kubeconfig Path","type":"string","required":false,"placeholder":"~/.kube/config"}],"auth":{"type":"none","setupCommand":"kubectl config view"}}
# 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`).
在 GitHub 查看