Fix Prometheus etcd scrape config for DigitalOcean

* Kubelet uses a node's hostname as the node name, which isn't
resolvable on DigitalOcean. On DigitalOcean, the node name was
set to the internal IP until #337 switched to instead configuring
kube-apiserver to prefer the InternalIP for communication
* Explicitly configure etcd scrapes to target each controller by
internal IP and port 2381 (replace __address__)
This commit is contained in:
Dalton Hubble 2018-11-06 23:02:45 -08:00
parent be9f7b87d6
commit 7de03a1279
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ data:
regex: 'true' regex: 'true'
- action: labelmap - action: labelmap
regex: __meta_kubernetes_node_label_(.+) regex: __meta_kubernetes_node_label_(.+)
- source_labels: [__meta_kubernetes_node_name] - source_labels: [__meta_kubernetes_node_address_InternalIP]
action: replace action: replace
target_label: __address__ target_label: __address__
replacement: '${1}:2381' replacement: '${1}:2381'