Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 1.44 KB

examples.md

File metadata and controls

56 lines (36 loc) · 1.44 KB

Examples

The following contains example yamls for all of the resources which makeup the Network Policy API.

Sample AdminNetworkPolicy and BaseLineAdminNetworkPolicy Resources

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 :-).

Sample Spec for Story 1: Deny traffic at a cluster level

Alt text

--8<-- "user-story-examples/user-story-1.yaml"

Sample Spec for Story 2: Allow traffic at a cluster level

Alt text

--8<-- "user-story-examples/user-story-2.yaml"

Sample Spec for Story 3: Explicitly Delegate traffic to existing K8s Network Policy

Alt text

--8<-- "user-story-examples/user-story-3.yaml"

Sample Spec for Story 4: Create and Isolate multiple tenants in a cluster

Alt text

--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"

Sample Spec for Story 5: Cluster Wide Default Guardrails

Alt text

--8<-- "user-story-examples/user-story-5.yaml"