Implement Kubernetes security contexts, Pod Security Standards, and network policies. Secure cluster components and workloads. Use when hardening Kubernetes deployments or meeting security compliance.
Start a fresh conversation. Replace the highlighted placeholders.
Use kubernetes-hardening to draft least-privilege Kubernetes manifests for [workload and namespace], covering restricted pod security, security contexts, RBAC, and network policies; do not apply them.
Required inputs
[workload and namespace]
User-approved starter prompt based on a pinned source version; check current skill requirements before running. Task evidence ↗
SKILL.md
name: kubernetes-hardeningdescription: Implement Kubernetes security contexts, Pod Security Standards, and network policies. Secure cluster components and workloads. Use when hardening Kubernetes deployments or meeting security compliance.license: MITmetadata: author: devops-skills version: "1.0"
Kubernetes Hardening
Secure Kubernetes clusters and workloads.
When to Use This Skill
Use this skill when:
Hardening Kubernetes clusters
Implementing Pod Security Standards
Configuring network policies
Meeting security compliance
Pod Security Standards
# Namespace with restricted policy
apiVersion: v1
kind: Namespace
metadata:
name: production
labels:
pod-security.kubernetes.io/enforce: restricted
pod-security.kubernetes.io/audit: restricted
pod-security.kubernetes.io/warn: restricted