When using kube-prometheus-stack
and kubernetes cluster provisioned by kubeadm
you will likely have an issue of prometheus not being able to connect to the kube-proxy metrics
It can be easily fixed by editing it’s config map
kubectl edit cm/kube-proxy -n kube-system
Change the metricsBindAddress
property from...