ahmetb / kubernetes-network-policy-recipes

Example recipes for Kubernetes Network Policies that you can just copy paste

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a recipe with a named port

joebowbeer opened this issue · comments

The port example description says:

A port may be either a numerical or named port on a pod.

But only demonstrates a port number.

Because "named port on a pod" can be ambiguous, I suggest adding an example, or at the least clarifying if this is a port name from the pod spec (e.g., Deployment) or a port name from the service spec.

I assume this is the port name from the Deployment, which corresponds to the targetPort in the Service.