Simple Policy Demo

This guide provides a simple way to try out Kubernetes NetworkPolicy with Calico. It requires a Kubernetes cluster configured with Calico networking, and expects that you have kubectl configured to interact with the cluster.

Note: The NetworkPolicy allows traffic from Pods with
the label run: access to Pods with the label run: nginx. These
are the labels automatically added to Pods started via kubectl run
based on the name of the Deployment.

This was just a simple example of the Kubernetes NetworkPolicy API and how Calico can secure your Kubernetes cluster. For more
information on network policy in Kubernetes, see the Kubernetes user-guide.

For a slightly more detailed demonstration of Policy, check out the stars demo.