-
Notifications
You must be signed in to change notification settings - Fork 504
Description
K8s cluster is installed on VMs/worker nodes having multiple interfaces. Couple of interfaces have external connectivity towards DC-GW. dns-node-cache (node-local-dns) listens on 9253 for prometheus. But this TCP listens on all the interfaces including external interfaces.
This makes cluster vulnerable to DoS attack.
worker-pool1-z92h78yx-stack:~ # lsof -i -n -P | grep :9253
node-cach 4720 root 8u IPv6 41286 0t0 TCP *:9253 (LISTEN)
As per prometheus plugins suggestion, if we configure an IP address, X.X.X.X:9253 it will be specific to the particular node with address X.X.X.X. In a multi-node cluster, this configuration in configmap will fail the bind with node address Y.Y.Y.Y
A configuration required to Listen on nodes InternalIP, which can solve this issue. (InternalIP:9253)