Kubernetes Network Policy Recipes Logo

Kubernetes Network Policy Recipes

0
Free
Updated 11 March 2025
Visit Website

This repository contains various use cases of Kubernetes Network Policies and sample YAML files to leverage in your setup. If you ever wondered how to drop/restrict traffic to applications running on Kubernetes, read on. Easiest way to try out Network Policies is to create a new Google Kubernetes Engine cluster. Applying Network Policies on your existing cluster can disrupt the networking. At the time of writing, most cloud providers do not provide built-in network policy support. If you are not familiar with Network Policies at all, I recommend reading my Securing Kubernetes Cluster Networking article first. NetworkPolicies operate at layer 3 or 4 of OSI model (IP and port level). They are used to control the traffic in(ingress) and out(egress) of pods. An empty selector will match everything. For example spec.podSelector: {} will apply the policy to all pods in the current namespace. Selectors can only select Pods that are in the same namespace as the NetworkPolicies. Eg. spec.podSelector of an ingress rule can only select pods in the same namespace.

FEATURES

SIMILAR TOOLS

A tool to discover new target domains using Content Security Policy

A textmode sniffer for tracking tcp streams and capturing data in various modes.

A tool for scanning networks, enumerating Siemens PLCs, and gathering detailed information about them.

NBD is a user-space network protocol for sharing block devices over a network, allowing clients to access block devices on a server as if they were local.

A network protocol panic button operating decentralized through UDP broadcasts and HTTP, intended for sensitive networks to prevent cold boot attacks.

Unfurl is a URL analysis tool that extracts and visualizes data from URLs, breaking them down into components and presenting the information visually.

A Python-based tool for subdomain enumeration and analysis

A TCP-based traceroute implementation that bypasses firewall filters to trace the path to a destination.

A multi-tool for subdomain enumeration

CyberSecTools logoCyberSecTools

Explore the largest curated directory of cybersecurity tools and resources to enhance your security practices. Find the right solution for your domain.

Operated by:

Mandos Cyber • KVK: 97994448

Netherlands • contact@mandos.io

VAT: NL005301434B12

Copyright © 2025 - All rights reserved