| name | kubernetes-deployment |
| description | Kubernetes is a container orchestration platform that automates deployment, Use when this capability is needed. |
| metadata | {"author":"AmnadTaowsoam"} |
Kubernetes Deployment
Skill Profile
(Select at least one profile to enable specific modules)
Overview
Kubernetes is a container orchestration platform that automates deployment, scaling, and management of containerized applications. This skill covers K8s concepts, resources, and best practices for deploying applications in production environments.
Why This Matters
Kubernetes has become the de facto standard for container orchestration, enabling organizations to:
- Scale applications automatically based on resource usage
- Achieve high availability through self-healing and replication
- Implement zero-downtime deployments with rolling updates
- Manage complex multi-service architectures efficiently
- Standardize deployment patterns across teams
- Reduce infrastructure costs through efficient resource utilization
Core Concepts & Rules
1. Core Principles
- Follow established patterns and conventions
- Maintain consistency across codebase
- Document decisions and trade-offs
2. Implementation Guidelines
- Start with the simplest viable solution
- Iterate based on feedback and requirements
- Test thoroughly before deployment
Inputs / Outputs / Contracts
Skill Composition
Quick Start / Implementation Example
- Review requirements and constraints
- Set up development environment
- Implement core functionality following patterns
- Write tests for critical paths
- Run tests and fix issues
- Document any deviations or decisions
def example_function():
pass
Assumptions
- Kubernetes cluster is already provisioned and accessible
kubectl CLI is installed and configured
- Container images are available in a registry
- Application exposes health check endpoints
- Storage class is available if persistent storage is needed
Compatibility & Prerequisites
- Supported Versions:
- Python 3.8+
- Node.js 16+
- Modern browsers (Chrome, Firefox, Safari, Edge)
- Required AI Tools:
- Code editor (VS Code recommended)
- Testing framework appropriate for language
- Version control (Git)
- Dependencies:
- Language-specific package manager
- Build tools
- Testing libraries
- Environment Setup:
.env.example keys: API_KEY, DATABASE_URL (no values)
Test Scenario Matrix (QA Strategy)
| Type | Focus Area | Required Scenarios / Mocks |
|---|
| Unit | Core Logic | Must cover primary logic and at least 3 edge/error cases. Target minimum 80% coverage |
| Integration | DB / API | All external API calls or database connections must be mocked during unit tests |
| E2E | User Journey | Critical user flows to test |
| Performance | Latency / Load | Benchmark requirements |
| Security | Vuln / Auth | SAST/DAST or dependency audit |
| Frontend | UX / A11y | Accessibility checklist (WCAG), Performance Budget (Lighthouse score) |
Technical Guardrails & Security Threat Model
1. Security & Privacy (Threat Model)
- Top Threats: Injection attacks, authentication bypass, data exposure
2. Performance & Resources
3. Architecture & Scalability
4. Observability & Reliability
Agent Directives
When deploying to Kubernetes:
- Always validate resources before applying
- Check resource availability before scaling
- Monitor rollout status after deployment
- Verify health checks are passing
- Review logs if pods fail to start
- Use dry-run for testing changes
Definition of Done (DoD) Checklist
Anti-patterns
- Running as root: Avoid running containers as root user
- Hardcoded values: Don't hardcode environment-specific values
- Ignoring limits: Never deploy without resource limits
- Latest tag: Avoid using
:latest image tag
- Monolithic pods: Don't run multiple processes in one container
- Ignoring health checks: Always implement health checks
Reference Links & Examples
- Internal documentation and examples
- Official documentation and best practices
- Community resources and discussions
Versioning & Changelog
- Version: 1.0.0
- Changelog:
- 2026-02-22: Initial version with complete template structure
Source: AmnadTaowsoam/CerebraSkills — distributed by TomeVault.