diff --git a/docs/GKE-cadvisor-support.md b/docs/GKE-cadvisor-support.md new file mode 100644 index 0000000000000000000000000000000000000000..aeb09514eb64b11b7c1da5eb7b4187eb96fe0629 --- /dev/null +++ b/docs/GKE-cadvisor-support.md @@ -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 +```