在 helm 中安装 prometheus operator 时出现此错误

I am getting this error while installing prometheus operator in helm

此图表已弃用 错误:安装失败:无法安装 CRD crds/crd-alertmanager.yaml:无法识别“”:版本“apiextensions.k8s.io/v1beta1”中的种类“CustomResourceDefinition”没有匹配项。io/v1beta1“

helm install prometheus monitor/prometheus-operator --namespace prometheus

图表 prometheus-operator 已弃用!

弃用信息:

DEPRECATED

This chart will be renamed, but first must be deprecated before the prometheus-community/helm-charts repo is indexed, so that it won't be listed in the hubs. See [this prometheus-community issue](https://github.com/prometheus-community/community/issues/28#issuecomment-670406329) for reasoning and next steps.

试试最新的:

$ helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
$ helm repo update
$ helm install kube-prometheus-stack prometheus-community/kube-prometheus-stack --namespace prometheus

N.B.: custom resource definitions (CRD)apiVersion 现在是 apiextensions.k8s.io/v1