diff options
Diffstat (limited to 'roles/monitoring/prometheus/exporter/standalone-kubelet/tasks')
-rw-r--r-- | roles/monitoring/prometheus/exporter/standalone-kubelet/tasks/main.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/monitoring/prometheus/exporter/standalone-kubelet/tasks/main.yml b/roles/monitoring/prometheus/exporter/standalone-kubelet/tasks/main.yml index e676f263..ffeb974f 100644 --- a/roles/monitoring/prometheus/exporter/standalone-kubelet/tasks/main.yml +++ b/roles/monitoring/prometheus/exporter/standalone-kubelet/tasks/main.yml @@ -7,5 +7,15 @@ proxy_ssl_certificate /etc/ssl/standalone-kubelet/client/crt.pem; proxy_ssl_certificate_key /etc/ssl/standalone-kubelet/client/key.pem; } + location = /standalone-kubelet/resource { + proxy_pass https://{{ kubernetes_standalone_address | default('127.0.0.1') }}:{{ kubernetes_standalone_port | default(10250) }}/metrics/resource; + proxy_ssl_certificate /etc/ssl/standalone-kubelet/client/crt.pem; + proxy_ssl_certificate_key /etc/ssl/standalone-kubelet/client/key.pem; + } + location = /standalone-kubelet/probes { + proxy_pass https://{{ kubernetes_standalone_address | default('127.0.0.1') }}:{{ kubernetes_standalone_port | default(10250) }}/metrics/probes; + proxy_ssl_certificate /etc/ssl/standalone-kubelet/client/crt.pem; + proxy_ssl_certificate_key /etc/ssl/standalone-kubelet/client/key.pem; + } dest: /etc/prometheus/exporter/standalone-kubelet.locations notify: reload nginx |