首页/ AI 技能 / @skilllib/skill-2117939930272412041
Skill站外收录 @skilllib/skill-2117939930272412041

kubernetes-deployment-creator

能够根据用户需求自动生成符合生产环境标准的 Kubernetes 资源定义,涵盖 Deployment、Service、ConfigMap、Secret、Ingress 和 HPA 等核心组件,内置健康检查、自动扩缩容、TLS 配置与资源约束等最佳实践。

0.0 (0) 16 次安装 原作者 编程导航
收录于 2026-01-22

Skills.MD

## Overview This skill allows Claude to create production-ready Kubernetes deployments and services. It generates complete K8s manifests with health checks, auto-scaling, ingress, TLS, and resource management configured. ## How It Works 1. **Receiving Request**: Claude receives a request to create Kubernetes resources. 2. **Generating Manifests**: Claude generates YAML manifests for deployments, services, configmaps, secrets, ingress, and horizontal pod autoscalers based on the user's requirements. 3. **Presenting Manifests**: Claude presents the generated manifests to the user for review and deployment. ## When to Use This Skill This skill activates when you need to: - Create a new Kubernetes deployment. - Define a Kubernetes service for an application. - Generate Kubernetes manifests for any K8s resource. ## Examples ### Example 1: Deploying a Web Application User request: "Create a Kubernetes deployment for a web application named 'my-web-app' with 3 replicas, exposing port 80." The skill will: 1. Generate a Deployment manifest for 'my-web-app' with 3 replicas. 2. Generate a Service manifest to expose port 80 of the deployment. ### Example 2: Setting up Ingress for a Service User request: "Set up an Ingress resource to route traffic to the 'my-web-app' service." The skill will: 1. Generate an Ingress manifest to route external traffic to the 'my-web-app' service. 2. Configure TLS termination for secure access. ## Best Practices - **Resource Limits**: Define resource requests and limits for each container to ensure fair resource allocation. - **Health Checks**: Configure liveness and readiness probes to enable automatic restarts and prevent traffic from being routed to unhealthy pods. - **Namespaces**: Use namespaces to isolate different environments or applications within the cluster. ## Integration This skill can be used with other Claude Code plugins for tasks such as deploying infrastructure-as-code (IaC) or integrating with CI/CD pipelines. It provides the Kubernetes manifests that other plugins can then deploy or manage.

评论 0

还没有评论,来抢沙发。