awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
ahmetb avatar

ahmetb/kubernetes-network-policy-recipes

0
View on GitHub↗
6,140 stars·1,822 forks·Apache-2.0·16 views

Kubernetes Network Policy Recipes

This project is a library of declarative configuration patterns and templates for implementing network policies within Kubernetes clusters. It provides a collection of reference guides and ready-to-use snippets designed to establish pod isolation and zero-trust traffic rules.

The project focuses on implementing a default-deny security posture, where all network traffic is blocked until explicitly authorized through a whitelist. It provides specific templates for restricting lateral movement and securing microservice boundaries using label-based selectors and port-specific filtering.

Its capabilities cover comprehensive ingress and egress traffic control, including the ability to block external outbound connections and manage inbound requests from both internal pods and external clients. It also includes patterns for namespace-level isolation to restrict communication between different logical project environments.

Features

  • Kubernetes Network Policy Templates - Provides a library of ready-to-use declarative templates for managing both inbound and outbound cluster traffic.
  • Kubernetes Network Security Policies - Provides declarative rules for securing pod-to-pod and pod-to-namespace communication in Kubernetes clusters.
  • Pod Isolation Guides - Offers practical implementation patterns and configuration templates for isolating container workloads using a zero-trust security model.
  • Cross-Namespace Traffic Isolation - Establishes network boundaries at the namespace level to block unauthorized communication between project environments.
  • Label-Based Traffic Filtering - Filters network packets by matching metadata labels on pods and namespaces to identify authorized partners.
  • Local Namespace Traffic Isolation - Blocks incoming traffic from external namespaces while permitting internal communication between pods in the same namespace.
  • Traffic Isolation Patterns - Defines precise network boundaries for inbound and outbound requests between microservices using label selectors.
  • Namespace-Based Traffic Restrictions - Restricts access to pods based on labels assigned to the originating namespace.
  • Network Policy Templates - Provides reference collections of declarative configuration patterns for Kubernetes network policies.
  • Pod and Namespace Label Filtering - Uses composite rules requiring both pod and namespace label matches for traffic authorization.
  • Namespace Communication Boundaries - Provides declarative definitions for establishing security boundaries between namespaces to block unauthorized lateral movement.
  • Default Deny Ingress Policies - Establishes a default-deny posture by blocking all inbound traffic until explicit allow rules are defined.
  • Default-Deny Postures - Establishes a baseline that blocks all network traffic by default, requiring explicit whitelist rules.
  • Egress Traffic Firewalls - Implements egress traffic filtering to prevent unauthorized communication with other pods or external endpoints.
  • External Outbound Blocking - Provides patterns to block outbound connections to networks outside the cluster while permitting internal traffic.
  • Pod-Based Inbound Restrictions - Limits incoming network connections to specific pods based on label selectors to ensure authorized service communication.
  • Pod-Based Traffic Whitelists - Implements pod-based traffic whitelists to permit network communication from specific microservices.
  • Namespace-Wide Default Blocking - Drops all incoming traffic for every pod within a specific namespace to enforce a secure baseline.
  • Network Namespace Isolation - Restricts network traffic between different namespaces to create logical environment boundaries.
  • Zero Trust Networking - Implements a security framework where every internal connection must be explicitly authorized.
  • Global Inbound Permissions - Defines cluster-wide policies that permit traffic to a service from any pod in any namespace.
  • Service Whitelisting Templates - Offers standardized patterns for authorizing communication between specific microservices based on labels.
  • Default Deny Egress Policies - Implements policies that block all outbound traffic except to explicitly allowed destinations.
  • Traffic Origin Selectors - Defines rules based on whether traffic originates internally or externally to regulate cluster access.
  • Port-Based Filters - Limits incoming network connections to defined numerical ports to isolate specific application services.
  • Pod - Limits incoming network traffic to specific ports on pods to isolate individual application services.
  • External Inbound Whitelisting - Permits specific incoming connections from the public internet or load balancers while maintaining a default-deny baseline.
  • Network Access Controls - Configures network access controls to permit or block traffic originating from clients outside the cluster.
  • Learning and Reference - Collection of network policy use cases and examples.

Star history

Star history chart for ahmetb/kubernetes-network-policy-recipesStar history chart for ahmetb/kubernetes-network-policy-recipes

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does ahmetb/kubernetes-network-policy-recipes do?

This project is a library of declarative configuration patterns and templates for implementing network policies within Kubernetes clusters. It provides a collection of reference guides and ready-to-use snippets designed to establish pod isolation and zero-trust traffic rules.

What are the main features of ahmetb/kubernetes-network-policy-recipes?

The main features of ahmetb/kubernetes-network-policy-recipes are: Kubernetes Network Policy Templates, Kubernetes Network Security Policies, Pod Isolation Guides, Cross-Namespace Traffic Isolation, Label-Based Traffic Filtering, Local Namespace Traffic Isolation, Traffic Isolation Patterns, Namespace-Based Traffic Restrictions.

Which projects share features with ahmetb/kubernetes-network-policy-recipes?

Projects with overlapping indexed features include: superradcompany/microsandbox — Microsandbox is a runtime for creating and managing lightweight, hardware-isolated virtual machines — called sandboxes… lxc/lxd — LXD is a unified platform for managing both system containers and virtual machines through a single REST API and… donnemartin/system-design-primer — This project is a comprehensive educational resource and study guide focused on distributed systems architecture and… netbirdio/netbird — NetBird is a zero-trust networking platform that builds secure, encrypted peer-to-peer overlay networks using the… build-trust/ockam — Ockam is a zero-trust networking framework designed to secure data transit between distributed applications using an… madhuakula/kubernetes-goat — Kubernetes Goat is a security training environment designed for practicing the identification and exploitation of…

Projects sharing features with Kubernetes Network Policy Recipes

These projects share indexed features with Kubernetes Network Policy Recipes. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • superradcompany/microsandboxsuperradcompany avatar

    superradcompany/microsandbox

    6,570View on GitHub↗

    Microsandbox is a runtime for creating and managing lightweight, hardware-isolated virtual machines — called sandboxes — that boot directly from standard OCI container images. Each sandbox runs as its own host process with a separate kernel, filesystem, and network stack, providing process-per-sandbox isolation. The project includes a command-line tool and multi-language SDKs (Rust, TypeScript, Python, Go) for programmatic lifecycle control, and it communicates with sandbox agents over Unix sockets using a CBOR-encoded protocol. What distinguishes Microsandbox is its combination of host-manag

    Rust
    View on GitHub↗6,570
  • lxc/lxdlxc avatar

    lxc/lxd

    5,554View on GitHub↗

    LXD is a unified platform for managing both system containers and virtual machines through a single REST API and command-line interface. It provides a programmatic HTTP interface for controlling the full lifecycle of instances, enabling automation and integration with external tools. The system runs unprivileged containers with per-instance UID/GID mappings, seccomp filters, and AppArmor profiles for kernel-level isolation, while supporting multiple storage backends including directory, Btrfs, LVM, ZFS, Ceph, LINSTOR, and TrueNAS through a unified driver interface. The platform distinguishes

    Go
    View on GitHub↗5,554
  • donnemartin/system-design-primerdonnemartin avatar

    donnemartin/system-design-primer

    353,387View on GitHub↗

    This project is a comprehensive educational resource and study guide focused on distributed systems architecture and backend infrastructure design. It provides a structured curriculum for mastering the principles of scalability, reliability, and performance required to design complex software systems. The repository distinguishes itself by offering a methodical approach to technical interview preparation, incorporating design patterns, architectural trade-offs, and spaced repetition tools to help users retain complex concepts. It emphasizes constraint-driven analysis, teaching users how to ev

    Pythondesigndesign-patternsdesign-system
    View on GitHub↗353,387
  • build-trust/ockambuild-trust avatar

    build-trust/ockam

    4,628View on GitHub↗

    Ockam is a zero-trust networking framework designed to secure data transit between distributed applications using an identity-based network overlay. It provides the primitives necessary to establish mutually authenticated and end-to-end encrypted connections, removing the reliance on traditional network-layer security. The project is distinguished by its use of attribute-based access control and verifiable credentials to manage trust at scale. It implements cryptographic identity rotation to maintain identity continuity and integrates with hardware-backed key management systems to secure priv

    Rustauthenticationauthorizationcredentials
    View on GitHub↗4,628
  • Compare all 30 related projects→