plugin/k8s_external: Resolve headless services (#5505)

*add option for resolving headless Services without external IPs in k8s_external

Signed-off-by: Tomas Kohout <tomas.kohout1995@gmail.com>
This commit is contained in:
TomasKohout
2022-08-30 20:59:27 +02:00
committed by GitHub
parent b218b56063
commit 6782b7fb42
15 changed files with 491 additions and 81 deletions

View File

@@ -68,6 +68,8 @@ func parse(c *caddy.Controller) (*External, error) {
return nil, c.ArgErr()
}
e.apex = args[0]
case "headless":
e.headless = true
default:
return nil, c.Errf("unknown property '%s'", c.Val())
}