When installing monitoring.yaml, ClusterRole kube-state-metrics is bound to ServiceAccount kube-state-metrics in namespace kube-system [line 581] which may not exist. In fact, Prometheus fails to get some metrics because of missing permissions.
Easily solved by binding this role to ServiceAccount kube-state-metrics in namespace knative-monitoring, the one created at the beginning of the file.
I think it should be updated in the file or clearly stated in the doc.
When installing
monitoring.yaml, ClusterRolekube-state-metricsis bound to ServiceAccountkube-state-metricsin namespacekube-system[line 581] which may not exist. In fact, Prometheus fails to get some metrics because of missing permissions.Easily solved by binding this role to ServiceAccount
kube-state-metricsin namespaceknative-monitoring, the one created at the beginning of the file.I think it should be updated in the file or clearly stated in the doc.