Skip to content

Different Domain Whitelisting for Different Namespaces #38

@quentinkhoo

Description

@quentinkhoo

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions