k8s-security.pro

Security Templates

25 production-ready Kubernetes security configurations, organized by domain.

Network Security

#01 free

Default Deny Network Policy

A zero-trust NetworkPolicy that blocks all ingress and egress traffic by default, forcing explicit allow rules for every traffic flow.

#08 starter

Allow DNS Network Policy

A NetworkPolicy that permits DNS resolution to CoreDNS in kube-system, required when using default-deny policies.

#13 professional

Block Cloud Metadata

NetworkPolicies that block access to the cloud metadata endpoint (169.254.169.254) to prevent SSRF-based IAM credential theft on AWS, GCP, and Azure.

#14 professional

Namespace Isolation

A complete namespace isolation strategy with default-deny ingress, intra-namespace allow, ingress controller access, monitoring exceptions, and egress controls.

#15 professional

Egress Allow Rules

A whitelist-only egress model with six policies: default deny, DNS resolution, HTTPS to approved CIDRs, database access, internal service access, and Kubernetes API access.

#20 enterprise

Complete 3-Tier Network Policy Set

A production-ready set of 6 NetworkPolicies implementing zero-trust networking for a 3-tier application: default deny, frontend, backend, database, Redis cache, and Prometheus monitoring.

#21 professional

Istio mTLS Configuration

Enforce mutual TLS across your service mesh with Istio PeerAuthentication and DestinationRules for zero-trust service-to-service communication.

#23 professional

Cilium Network Policy

eBPF-based network policies with Cilium providing L3/L4/L7 traffic control, DNS-aware filtering, and HTTP-level security rules.

Pod Security

RBAC

Supply Chain Security

Secrets Management

Disaster Recovery

Resource Management

Audit & Monitoring

Supply Chain