360 Secure SkillHub
360 安全技能中心

Skylv Kubernetes Automation

这是一款Kubernetes集群自动化管理工具,无需记忆kubectl命令,通过自然语言即可完成部署应用(支持YAML或自然语言创建)、扩缩容服务、监控集群健康、排查Pod故障、管理配置项、处理发布回滚等核心操作。典型场景包括部署新应用、日常集群监控、故障调试、流量高峰期扩容等,需提前配置kubectl连接集群,输入为自然语言命令或YAML路径,输出为集群操作结果与状态信息。

sky-lv
sky-lv
热度 47.84
最近更新 2026-05-18 11:49:20
分类:自动化依赖:代码执行 / 读写文件 / 内部调用大模型应用场景:DevOps / 自动化脚本 / 调试排错

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add skylv-kubernetes-automation
Metadata
description
Deploy, scale, and troubleshoot Kubernetes clusters. Manage pods, deployments, services with natural language commands. No kubectl memorization needed.
keywords
kubernetes, k8s, deploy, scale, pod, deployment, container, devops, cluster management
name
kubernetes-automation
triggers
kubernetes, k8s, deploy to k8s, scale deployment, pod status, kubectl, cluster

kubernetes-automation

Talk to your Kubernetes cluster in plain English. Deploy apps, scale services, debug pods — no kubectl cheatsheet needed.

What It Does

  • Deploy applications — From YAML files or with natural language
  • Scale services — Adjust replicas up or down instantly
  • Monitor health — Check pod status, resource usage, events
  • Debug issues — Diagnose crashes, view logs, describe resources
  • Manage configs — ConfigMaps, Secrets, Namespaces
  • Handle rollouts — Rolling updates, rollbacks, canary deployments

Quick Start

# 1. Check cluster connection
kubectl cluster-info

# 2. Deploy an application
deploy app from ./deployment.yaml to production

# 3. Check if it's running
get pod status in production namespace

# 4. Scale if needed
scale my-app to 5 replicas

Common Use Cases

🚀 Deploy New Application

# Deploy from YAML
deploy app from deployment.yaml to production

# Or create with natural language
create deployment my-api with image my-api:v2.1.0 port 8080

📊 Monitor Cluster Health

# Check all pods
get pod status in all namespaces

# View resource usage
get resource usage for production namespace

# See recent events
get events from last hour in production

🔧 Debug Failing Pods

# Find crashed pods
find pods with status CrashLoopBackOff

# View logs
get logs from pod my-api-xyz123 --tail 100

# Describe for details
describe pod my-api-xyz123

📈 Scale for Traffic

# Scale up for high traffic
scale payment-api to 10 replicas

# Scale down to save costs
scale payment-api to 2 replicas

# Autoscale based on CPU
set autoscale for my-app min 2 max 10 cpu 70%

All Commands

Command Purpose
deploy app from <yaml> Deploy application
get pod status Check pod health
scale <name> to <n> Change replica count
get logs from pod <name> View container logs
describe pod <name> Detailed pod info
get events Recent cluster events
rollback <deployment> Undo last deployment
set autoscale Configure HPA

Requirements

  • kubectl configured and connected to cluster
  • Kubernetes cluster access (any cloud or local)
  • Optional: Helm for chart deployments, Kustomize for overlays