jayunit100 / network-policy-subproject

A starter repo to donate to Kubernetes-sigs so the community can own and iterate on stories over time, with issue tracking, as we close out the policy++ wg
13 stars 12 forks source link

[Netpol Operator] Provide templates for netpol scenarios #41

Open mattfenwick opened 3 years ago

mattfenwick commented 3 years ago

Instead of arbitrary targeting, focus on expected use cases:

Pod -> Pod Pod -> Service Pod -> Namespace

Service -> Pod Service -> Service Service -> Namespace

Namespace -> Pod Namespace -> Service Namespace -> Namespace

etc.

jayunit100 commented 3 years ago

Yup, so this means we need a total of 6 different 'template' constructions,

Pod -> Pod
Pod -> Service
Pod -> Namespace

Service -> Service
Service -> Namespace

Namespace -> Namespace