mirror of
https://github.com/coredns/coredns.git
synced 2025-11-15 16:32:23 -05:00
add client labels to k8s plugin metadata (#6475)
Signed-off-by: Nolan Miles <nolanpmiles@gmail.com>
This commit is contained in:
@@ -207,9 +207,11 @@ plugin is also enabled:
|
||||
* `kubernetes/service`: the service name in the query
|
||||
* `kubernetes/client-namespace`: the client pod's namespace (see requirements below)
|
||||
* `kubernetes/client-pod-name`: the client pod's name (see requirements below)
|
||||
* `kubernetes/client-label/<label key>`: a label on the client pod (see requirements below)
|
||||
|
||||
The `kubernetes/client-namespace` and `kubernetes/client-pod-name` metadata work by reconciling the
|
||||
client IP address in the DNS request packet to a known pod IP address. Therefore the following is required:
|
||||
The `kubernetes/client-namespace`, `kubernetes/client-pod-name`, and `kubernetes/client-label/<label key>`
|
||||
metadata work by reconciling the client IP address in the DNS request packet to a known pod IP address.
|
||||
Therefore the following is required:
|
||||
* `pods verified` mode must be enabled
|
||||
* the remote IP address in the DNS packet received by CoreDNS must be the IP address
|
||||
of the Pod that sent the request.
|
||||
|
||||
Reference in New Issue
Block a user