Prometheus cluster integration: helm install fails on 1.22+
The installation of the currently used Prometheus Helm chart fails on Kubernetes clusters running 1.22 and newer.
The currently referenced Helm chart, v10.4.1
of stable/prometheus
from https://charts.helm.sh/stable, fails to install with the following error:
Error: unable to build kubernetes objects from release manifest: [unable to recognize "": no matches for kind "ClusterRole" in version "rbac.authorization.k8s.io/v1beta1", unable to recognize "": no matches for kind "ClusterRoleBinding" in version "rbac.authorization.k8s.io/v1beta1"]
rbac.authorization.k8s.io/v1beta1
was deprecated in Kubernetes 1.22 and is no longer being served as described at https://kubernetes.io/docs/reference/using-api/deprecation-guide/#rbac-resources-v122
Another related issue is that the currently used Prometheus Helm chart is also deprecated as described at https://github.com/helm/charts/tree/master/stable/prometheus.