From a7ad512d0403c7cfc642b16415c51e32a3ae4551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Mathiasen?= Date: Fri, 26 Jan 2018 11:00:59 +0100 Subject: [PATCH] Add documentation about annotation-filter (#448) There were no documentation describing how to use the annotation-filter parameter --- docs/faq.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/faq.md b/docs/faq.md index 2ae078f70..e334939cd 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -200,3 +200,15 @@ spec: service ingress ``` + + +### Running an internal and external dns service + +Sometimes you need to run an internal and an external dns service. +The internal one should provision hostnames used on the internal network (perhaps inside a VPC), and the external +one to expose DNS to the internet. + +To do this with external-dns you can use the `--annotation-filter` to specifically tie an instance of external-dns to +an instance of a ingress controller. Let's assume you have two ingress controllers `nginx-internal` and `nginx-external` +then you can start two external-dns providers one with `--annotation-filter=kubernetes.io/ingress.class=nginx-internal` +and one with `--annotation-filter=kubernetes.io/ingress.class=nginx-external` \ No newline at end of file