<p>I'm creating a minimal custom ingress controller in dotnet core. I can access the k8s ingress resources by querying the api server, but polling doesn't seem like a good solution to update ingress rules since in my use case they aren't changed that often but if they change, the changes should be applied right away.</p>

<p>Is there a way to receive notifications on ingress resource changes? Like registering a webhook or something along the lines? Or is polling the only way?</p>

Markus Dresch
<p>What dotnet core library are you using? There is a <code>Watch</code> on every resource in the golang client (e.g. <a href="https://godoc.org/k8s.io/client-go/kubernetes/typed/extensions/v1beta1#IngressInterface" rel="nofollow noreferrer">ingress</a>). You can find our more about this under "Setup a Watch" section in <a href="https://medium.com/programming-kubernetes/building-stuff-with-the-kubernetes-api-part-4-using-go-b1d0e3c1c899" rel="nofollow noreferrer">this article</a></p>

<p>It looks like there is a <a href="https://github.com/kubernetes-client/csharp/blob/master/examples/watch/Program.cs" rel="nofollow noreferrer">Watch example in the kubernetes-client/csharp</a> as well.</p>
