← Back to Security & Essentials

Kubernetes Network Policy Generator

Define your service topology and traffic rules and Get production-ready Network Policy YAML instantly

https://hub.toolweb.in/security/k8snetpolgen/

Endpoints

POST /k8s-netpol

Generate Network Policies

Request Body (JSON)

{
  "cluster_name": "<string>",
  "environment": "<string>",
  "cloud_provider": "<string>",
  "services": "<array>",
  "traffic_rules": "<array>",
  "default_deny_all": true,
  "allow_dns": true,
  "allow_monitoring": false,
  "monitoring_namespace": "monitoring",
  "ingress_namespace": "ingress-nginx",
  "compliance_frameworks": "",
  "notes": ""
}
GET /health

Health

Quick Start

# cURL
curl -H "X-API-Key: YOUR_API_KEY" \
  https://hub.toolweb.in/security/k8snetpolgen/
# Python
import requests
r = requests.get("https://hub.toolweb.in/security/k8snetpolgen/",
    headers={"X-API-Key": "YOUR_API_KEY"})
print(r.json())
# JavaScript
fetch("https://hub.toolweb.in/security/k8snetpolgen/", {
  headers: { "X-API-Key": "YOUR_API_KEY" }
}).then(r => r.json()).then(console.log)

Sign up free to get your API key auto-filled.