Skip to content

ms-azure-demos/aks-windows-container-network-policy-calico

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testing Kubernetes network policy in AKS Cluster with Calico

  • Demos how the network policy can be enforced to deployment pods
  • Blocks outbound communication.
  • Uses Calico
  • Currently this repo include same for windows container. Expecting this to work same for Linux containers as well.

How to run

By default it will make http calls

Reproduce error

  • Change the network-policy.yml to remove github IPs
  • Deploy HELM chart again
  • This will not restart the container. So better delete the pod.

How the PoC structured

  • The container is running a command that makes web request to joymon.github.io
  • It will work by default as the network-policy.yml has the required IPs in egress
    • Recommends reading the container specs for better understandability of the container going to behave
  • Remove the last 4 ipBlocks from network-policy.yml file to ensure its blocking the network traffic.