The cluster was exposed. One misconfigured port, and the wrong packet could slip through. That’s where Kubernetes Network Policies, managed with K9S, become the difference between control and chaos.
K9S is a command-line tool that makes interacting with your Kubernetes clusters faster, more visual, and less error-prone. Network Policies in Kubernetes define how pods communicate with each other and with the outside world. Combined, they give you direct oversight of traffic paths without forcing you to dig through YAML blindly.
A Kubernetes Network Policy is a resource that uses selectors to match pods and define allowed ingress and egress rules. With K9S, you can list, inspect, and edit these policies in seconds. No need to bounce between kubectl commands and multiple config files—K9S streams the same data but lets you navigate and update while staying inside one interactive terminal UI.
To view all Network Policies in your namespace, you run K9S, select the np resource type, and drill into each policy. You see selector labels, allowed ports, protocols, and namespaces in one view. If you need to adjust rules, K9S makes it fast: edit mode opens the manifest inline, and changes apply immediately after saving.