首页 文章

Prometheus Operator`“alertmanagers.monitoring.coreos.com”已经存在

提问于
浏览
-1

这是默认值,一个全新的,否则是空的minikube . 我怀疑有什么东西坏了?

fyi,我尝试回滚到Kubernetes v1.12.3并得到相同的错误结果 .

~ minikube delete
Deleting local Kubernetes cluster...
Machine deleted.

~ rm -rf ~/.helm

~ minikube start --memory 8000 --kubernetes-version v1.13.0

Starting local Kubernetes v1.13.0 cluster...
Starting VM...
Getting VM IP address...
Moving files into cluster...
Setting up certs...
Connecting to cluster...
Setting up kubeconfig...
Starting cluster components...
Kubectl is now configured to use the cluster.
Loading cached images from config file.

~ eval $(minikube docker-env)

~ helm init

helm init
Creating /Users/myname/.helm 
Creating /Users/myname/.helm/repository 
Creating /Users/myname/.helm/repository/cache 
Creating /Users/myname/.helm/repository/local 
Creating /Users/myname/.helm/plugins 
Creating /Users/myname/.helm/starters 
Creating /Users/myname/.helm/cache/archive 
Creating /Users/myname/.helm/repository/repositories.yaml 
Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com 
Adding local repo with URL: http://127.0.0.1:8879/charts 
$HELM_HOME has been configured at /Users/myname/.helm.

Tiller (the Helm server-side component) has been installed into your Kubernetes Cluster.

Please note: by default, Tiller is deployed with an insecure 'allow unauthenticated users' policy.
To prevent this, run `helm init` with the --tiller-tls-verify flag.
For more information on securing your installation see: https://docs.helm.sh/using_helm/#securing-your-helm-installation
Happy Helming!

~ helm repo update

Hang tight while we grab the latest from your chart repositories...
...Skip local chart repository
...Successfully got an update from the "stable" chart repository
Update Complete. ⎈ Happy Helming!⎈ 

~ helm install --name myprometheus stable/prometheus-operator

Error: release myprometheus failed: customresourcedefinitions.apiextensions.k8s.io "alertmanagers.monitoring.coreos.com" already exists

1 回答

  • 0

    我从头盔2.12.0回滚到2.11.0,错误消失了,prometheus-operator恢复工作 . 新的Helm 2.12.0和prometheus-operator之间似乎存在一些不兼容性 . 我认为会及时得到解决 .

相关问题