policy icon indicating copy to clipboard operation
policy copied to clipboard

Different Domain Whitelisting for Different Namespaces

Open quentinkhoo opened this issue 3 years ago • 0 comments

Hey all, as the title suggests I'm looking to do some DNS firewalling and I'm trying to see if it's possible to whitelist different domains for different namespaces. So far I've come up with the following Corefile configuration for the configmap as shown below, I'm trying to allow pods in the default namespace to query google.com and pods in the kube-system namespace to query facebook.com: image

However, it seems like the configuration is wrong and from within the kube-system, I can query google.com, instead of facebook.com. image

Could I seek some advice on what I'm potentially configuring wrongly over here? Or am I misunderstanding how I should be writing the Corefile. Thank you in advanced!

quentinkhoo avatar Aug 11 '22 04:08 quentinkhoo