The following contains example yamls for all of the resources which makeup the Network Policy API.
These examples will start with the object yaml defintions used to implement the core use cases. Please feel free to contribute more examples that may seem relevant to other users :-).
--8<-- "user-story-examples/user-story-1.yaml"
--8<-- "user-story-examples/user-story-2.yaml"
--8<-- "user-story-examples/user-story-3.yaml"
--8<-- "user-story-examples/user-story-4-v1.yaml"
This can also be expressed in the following way:
--8<-- "user-story-examples/user-story-4-v2.yaml"
--8<-- "user-story-examples/user-story-5.yaml"