<p>I want to make sure my kubernetes cluster doesnt talk to a specific domain name (*.domain.tld).  How can I blacklist it?</p>

<p>Thanks</p>

fotoflo
<p>You should be looking into <a href="https://kubernetes.io/docs/concepts/services-networking/network-policies/" rel="nofollow noreferrer">Network Policies</a> but I think only IP's can be blocked not domains.</p>

<p>I think this might be achievable with <a href="https://istio.io/" rel="nofollow noreferrer">istio</a> and policy enforcement, this is explained at <a href="https://istio.io/docs/tasks/policy-enforcement/denial-and-list/" rel="nofollow noreferrer">Denials and White/Black Listing</a>.</p>

<p>You can also check out this Stack question <a href="https://stackoverflow.com/questions/57026337/ip-blacklisting-in-istio">IP Blacklisting in Istio</a>.</p>
