home / skills / partme-ai / full-stack-skills / kubernetes

kubernetes skill

/skills/kubernetes

This skill provides comprehensive guidance for deploying and managing Kubernetes resources, including pods, services, deployments, and ingress configurations.

npx playbooks add skill partme-ai/full-stack-skills --skill kubernetes

Review the files below or copy the command above to add this skill to your agents.

Files (2)
SKILL.md
679 B
---
name: kubernetes
description: Provides comprehensive guidance for Kubernetes including pods, services, deployments, ingress, and cluster management. Use when the user asks about Kubernetes, needs to deploy applications to Kubernetes, configure Kubernetes resources, or manage Kubernetes clusters.
license: Complete terms in LICENSE.txt
---

## When to use this skill

Use this skill whenever the user wants to:
- [待完善:根据具体工具添加使用场景]

## How to use this skill

[待完善:根据具体工具添加使用指南]

## Best Practices

[待完善:根据具体工具添加最佳实践]

## Keywords

[待完善:根据具体工具添加关键词]

Overview

This skill provides comprehensive, practical guidance for Kubernetes: pods, services, deployments, ingress, and cluster management. It helps you design, deploy, troubleshoot, and optimize applications running on Kubernetes clusters. Use it to translate platform-agnostic requirements into concrete Kubernetes manifests, CLI commands, and operational advice.

How this skill works

The skill inspects your deployment goals, application architecture, and current cluster state to recommend resource types, configuration snippets, and command sequences. It generates YAML manifests, kubectl commands, health-check patterns, and step-by-step procedures for upgrades, rollouts, and rollbacks. It also identifies common misconfigurations and suggests fixes for networking, RBAC, storage, and resource limits.

When to use it

  • Deploying a new microservice or migrating an app to Kubernetes
  • Designing Services, Ingress, and network routing for your apps
  • Creating or tuning Deployment, StatefulSet, DaemonSet, or Job manifests
  • Troubleshooting pod failures, scheduling issues, or networking problems
  • Planning cluster maintenance, upgrades, or autoscaling strategies

Best practices

  • Define resource requests and limits for predictable scheduling and stability
  • Use readiness and liveness probes to manage lifecycle and graceful rollouts
  • Prefer declarative manifests stored in version control and apply via CI/CD
  • Segment access using namespaces and RBAC; avoid granting cluster-admin by default
  • Use HorizontalPodAutoscaler for load-based scaling and Cluster Autoscaler for node scaling

Example use cases

  • Generate a minimal Deployment and Service manifest for a stateless web app and an Ingress rule for external access
  • Troubleshoot CrashLoopBackOff by analyzing pod logs, events, and image entrypoint issues
  • Convert a single-instance database into a StatefulSet with persistent volumes and headless Service
  • Plan a zero-downtime rolling update and provide kubectl commands for rollout, pause, and rollback
  • Recommend storage classes and PVC templates for encrypted block storage in a cloud environment

FAQ

Can this skill produce ready-to-apply YAML?

Yes. It generates clear, editable YAML manifests and explains each field so you can adapt them to your environment.

Will it handle cloud-specific resources?

It provides cloud-aware recommendations (load balancers, storage classes, IAM) but you should supply cloud details to get exact provider-specific manifests.

Can it help with security hardening?

Yes. It suggests RBAC rules, PodSecurityPolicies or equivalent, network policies, and image-scanning practices to reduce risk.