Skip to content
Back to skills

Kubernetes

ASecurity

> Automated container deployment, scaling, and management.

  • 13 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 5, 2026
ai-agentsgobashnodedockerkubernetesdatabasebackendsecurity

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add ashish7802/awesome-api-skills --skill kubernetes --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Kubernetes?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Kubernetes
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ashish7802-kubernetes/badge)](https://www.skillsdirectory.com/skills/ashish7802-kubernetes)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Kubernetes Skill

> Automated container deployment, scaling, and management.

## Ecosystem Graph

```mermaid
graph LR
  kubernetes["Kubernetes"]
  kubernetes -- "depends on" --> docker
  kubernetes -- "integrates with" --> helm
  kubernetes -- "works well with" --> argo-cd
  kubernetes -- "monitors" --> prometheus
```

## Quick Start
Kubernetes (K8s) orchestrates clusters of machines running containers. It declarative states (YAML) to manage Deployments, Services, and Ingresses.

```bash
kubectl apply -f deployment.yaml
```

## Production Patterns
### Operators
For complex stateful applications (like Postgres or Redis), do not manually manage StatefulSets. Use Kubernetes Operators (e.g., CrunchyData Postgres Operator) to handle backups, failovers, and version upgrades automatically.

## Architecture & Scaling
### Probes
Always define `livenessProbe` and `readinessProbe`. The liveness probe determines if the pod needs to be restarted. The readiness probe determines if the pod is ready to receive network traffic from the Service load balancer.

## Error Recovery
If pods frequently crash with `OOMKilled` (Out of Memory), ensure your `resources.limits.memory` is set correctly and matches the memory allocation limits of your runtime (e.g., Node.js `--max-old-space-size`).

## Security Notes
Enable RBAC (Role-Based Access Control). Do not grant default Service Accounts cluster-admin privileges. Utilize Network Policies to restrict pod-to-pod communication (e.g., only the backend can talk to the database).

## Relationships
**Prerequisites**: [docker](/skills/docker)

**Works Well With**: [helm](/skills/helm), [argo-cd](/skills/argo-cd)

## References
- [Kubernetes Docs](https://kubernetes.io/docs/home/)

## Why use this skill
Use this when your agent works with **kubernetes** — structured patterns beat pasted docs and prevent common hallucinations.

## AI pitfalls
- Referencing CLI flags or config keys that do not exist
- Using outdated major versions of tools
- Skipping lockfile or version pinning in examples

## Production checklist
- [ ] Secrets in environment variables, not source code
- [ ] Error handling and logging in place
- [ ] Rate limits and timeouts configured

## Related skills
- [`docker`](../docker/SKILL.md) — depends on
- [`helm`](../helm/SKILL.md) — integrates with
- [`argo-cd`](../argo-cd/SKILL.md) — works well with
- [`prometheus`](../prometheus/SKILL.md) — monitors

---
> **Last Verified:** 2026-07-02

Files in this skill

  • SKILL.md2.4 KB
  • examples/deployment.yml433 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.