mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-10-28 14:41:02 +01:00
Add how to enable cAdvisor support on GKE
This commit is contained in:
parent
f0a86796f0
commit
e497e48e07
24
docs/GKE-cadvisor-support.md
Normal file
24
docs/GKE-cadvisor-support.md
Normal file
@ -0,0 +1,24 @@
|
||||
# Kubelet / cAdvisor special configuration updates for GKE
|
||||
|
||||
In order to allow Prometheus to access the endpoints provided by the kubelet/cAdvisor on GKE we have to downgrade the scheme to HTTP (from HTTPS).
|
||||
|
||||
|
||||
On linux:
|
||||
|
||||
```
|
||||
sed -i -e 's/https/http/g' \
|
||||
contrib/kube-prometheus/manifests/prometheus/prometheus-k8s-service-monitor-kubelet.yaml
|
||||
```
|
||||
|
||||
On MacOs:
|
||||
|
||||
```
|
||||
sed -i '' -e 's/https/http/g' \
|
||||
contrib/kube-prometheus/manifests/prometheus/prometheus-k8s-service-monitor-kubelet.yaml
|
||||
```
|
||||
|
||||
After you have modified the yaml file please run
|
||||
|
||||
```
|
||||
kubectl apply -f contrib/kube-prometheus/manifests/prometheus/prometheus-k8s-service-monitor-kubelet.yaml
|
||||
```
|
||||
Loading…
x
Reference in New Issue
Block a user