简体   繁体   English

helm upgrade mongodb 失败并出现错误“无法构建 kubernetes 对象”

[英]helm upgrade mongodb fails with error "unable to build kubernetes objects"

In process of project initialization I have a command:在项目初始化过程中,我有一个命令:

helm upgrade mongodb mongodb/mongodb --install --set replicaSet.enabled=true.

Which fails with error:失败并出现错误:

Release "mongodb" does not exist. Installing it now.
Error: unable to build kubernetes objects from release manifest: [resource mapping not found for name: "mongodb-arbiter" namespace: "" from "": no matches for kind "PodDisruptionBudget" in version "policy/v1beta1"
ensure CRDs are installed first, resource mapping not found for name: "mongodb-secondary" namespace: "" from "": no matches for kind "PodDisruptionBudget" in version "policy/v1beta1"
ensure CRDs are installed first]

Can you please suggest what to do?你能建议做什么吗?

The version of Kubernetes you are using is too new for your helm charts.您使用的 Kubernetes 版本对于您的掌舵图来说太新了。 Within the latest version of Kubernetes PodDisruptionBudget lives in policy/v1 and not policy/v1beta1 where your chart is looking for it.在 Kubernetes 的最新版本中,PodDisruptionBudget 位于policy/v1而不是您的图表正在寻找它的policy/v1beta1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM