JPeetz/agent-skills / skills/devops-infrastructure/kubernetes-operations
kubernetes-operations
UnverifiedUse this skill when creating or fixing Kubernetes manifests, Helm charts, or GitOps workflows — "create deployment", "review my deployment", "fix pod", "scale cluster", or "deploy to" a cluster. Generates secure manifests with resource limits, probes, security contexts, RBAC, and network policies; diagnoses failure modes and validates compliance to prevent K8s hallucination.
| File | Kind | Size |
|---|---|---|
| CHANGELOG.md | markdown | 2.5 KB |
| LICENSE | other | 1.1 KB |
| SKILL.md | skill md | 29.6 KB |
| evals/evals.json | config | 4.4 KB |
| references/helm-patterns.md | markdown | 22.8 KB |
| references/k8s-failure-modes.md | markdown | 19.2 KB |
| references/k8s-security-hardening.md | markdown | 15.2 KB |
| scripts/security-scan-k8s.shexecutable | script | 13.0 KB |
| scripts/validate-k8s-manifest.shexecutable | script | 6.6 KB |
evals/evals.json
View on GitHub[
{
"id": "eval-001",
"severity": "critical",
"description": "Production deployment generation with full security, autoscaling, probes, and resource management",
"input": "Create a production-ready Kubernetes Deployment for a Node.js API with autoscaling, health probes, resource limits, and proper security context",
"expected_trigger": true,
"assertions": [
"securityContext with runAsNonRoot: true",
"readinessProbe AND livenessProbe",
"resources with requests AND limits",
"HPA with cpu/memory targets",
"no deprecated API versions"
]
},
{
"id": "eval-002",
"severity": "critical",
"description": "Helm chart generation with multi-environment values and dependencies",
"input": "Generate a Helm chart for a microservice that needs Redis and PostgreSQL, with separate values for staging and production",
"expected_trigger": true,
"assertions": [
"Chart.yaml with name, version, appVersion",
"Chart.yaml with Redis and PostgreSQL dependencies",
"values.yaml with documented defaults",
"Separate values/staging.yaml and values/prod.yaml",
"_helpers.tpl with reusable template functions",
"NOTES.txt with post-install instructions"
]
},
{
"id": "eval-003",
"severity": "high",
"description": "Security review catches privileged container and missing NetworkPolicy",
"input": "Review my deployment for security issues: it runs as root, has no resource limits, and I'm not sure about the network setup",
"expected_trigger": true,
"assertions": [
"Identifies privileged/root container as FM-1",
"Identifies missing resource limits as FM-2",
"Identifies missing NetworkPolicy as FM-3",
"Recommends securityContext hardening",
"Recommends default-deny NetworkPolicy"
]
},
{
"id": "eval-004",
"severity": "high",
"description": "GitOps workflow with Flux CD for a multi-environment setup",
"input": "Set up GitOps for my Kubernetes cluster using Flux CD. I have staging and production environments with different configs",
"expected_trigger": true,
"assertions": [
"GitRepository source definition",
"Kustomization with path reference",
"Multi-environment overlay pattern",
"Prune enabled for garbage collection",
"Health check configuration",
"Post-build variable substitution"
]
},
{
"id": "eval-005",
"severity": "medium",
"description": "Diagnose and fix a crashing pod with OOMKilled",
"input": "fix pod: my-api-pod keeps restarting with OOMKilled in production. It's a Java service with default settings",
"expected_trigger": true,
"assertions": [
"Diagnoses FM-2 Resource Starvation",
"Recommends memory limits increase or JVM heap tuning",
"Suggests VPA in recommendation mode",
"Advises Guaranteed QoS for stability",
"Recommends HPA based on actual metrics"
]
},
{
"id": "eval-006",
"severity": "critical",
"description": "Multi-cloud deployment with EKS-specific IRSA and spot instances",
"input": "deploy to EKS with spot instances for cost savings, need IRSA for S3 access, and TLS termination via cert-manager",
"expected_trigger": true,
"assertions": [
"EKS spot nodeSelector and toleration",
"IRSA service account annotation",
"cert-manager Ingress annotation",
"PodDisruptionBudget for spot evictions",
"Cluster autoscaler safe-to-evict annotation",
"TopologySpreadConstraints for zone HA"
]
},
{
"id": "eval-007",
"severity": "medium",
"description": "NEAR-MISS NEGATIVE: Docker-only question without Kubernetes context",
"input": "How do I optimize my Dockerfile to use multi-stage builds and reduce image size?",
"expected_trigger": false,
"assertions": [
"Should NOT trigger kubernetes-operations skill",
"This is a Docker/pure container question without K8s deployment context"
]
},
{
"id": "eval-008",
"severity": "medium",
"description": "NEAR-MISS NEGATIVE: Terraform infrastructure provisioning without K8s context",
"input": "Write Terraform to provision an RDS instance, VPC, and subnets for my application",
"expected_trigger": false,
"assertions": [
"Should NOT trigger kubernetes-operations skill",
"This is infrastructure-as-code (Terraform) without Kubernetes deployment context — use infrastructure-as-code skill"
]
}
]
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |