kubernetes-best-practices

Review Kubernetes YAML for resource management and security configurations.

29|7|Updated Oct 13, 2025
One-click install
npx skills add https://github.com/armanzeroeight/fastagent-plugins --skill kubernetes-best-practices
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kubernetes-best-practices
Source: https://github.com/armanzeroeight/fastagent-plugins/tree/main/plugins/kubernetes-toolkit/skills/kubernetes-best-practices
Command: npx skills add https://github.com/armanzeroeight/fastagent-plugins --skill kubernetes-best-practices

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides essential guidance and best practices for creating robust, secure, and efficient Kubernetes manifests, helping users avoid common pitfalls in production deployments.

Core Features & Use Cases

  • Resource Management: Guidance on setting memory and CPU requests/limits.
  • Security: Best practices for security contexts, secrets, and RBAC.
  • High Availability: Recommendations for replica counts, PDBs, and anti-affinity.
  • Use Case: When writing a new Kubernetes Deployment YAML, use this Skill to ensure you've included proper resource requests, security contexts, and health checks.

Quick Start

Use the kubernetes-best-practices skill to review the provided Kubernetes YAML for resource management and security configurations.

Frequently Asked Questions about kubernetes-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the best practices for Kubernetes deployments in production?

Production-ready Kubernetes manifests require setting proper CPU and memory requests and limits, configuring health checks, applying security contexts, and managing secrets with RBAC for secure, scalable, and maintainable cloud-native deployments.

How do I configure resource limits and requests in Kubernetes YAML manifests?

To configure resource limits in Kubernetes YAML manifests, specify CPU and memory requests and limits for your pods. This resource management ensures efficient scheduling and prevents noisy neighbor problems in your container orchestration environment.

What security context settings should I apply to my Kubernetes pods?

Kubernetes pods require security context settings to restrict container privileges. Apply best practices by configuring RBAC, managing secrets securely, and enforcing least-privilege access rules within your deployment manifests to protect cloud-native applications.

How do I ensure high availability for my Kubernetes services?

Ensure high availability for Kubernetes services by configuring appropriate replica counts, implementing Pod Disruption Budgets (PDBs), and applying anti-affinity rules. These manifest configurations prevent single points of failure during node maintenance or unexpected pod terminations.

Does this Kubernetes guidance cover both Deployment and Service YAML configurations?

Yes, the Kubernetes manifest guidance covers Deployments, pods, and services. It applies to users working with Kubernetes YAML files, ensuring your deployment and service configurations follow secure, scalable, and maintainable best practices for cloud-native applications.

When should I not use default settings in my Kubernetes deployment manifests?

Avoid default settings in Kubernetes deployment manifests when moving to production. Defaults often lack resource management, security contexts, and high availability configurations, making your cloud-native applications vulnerable to common orchestration pitfalls and scaling issues.