【问题标题】:helm upgrade mongodb fails with error "unable to build kubernetes objects"helm upgrade mongodb 失败并出现错误“无法构建 kubernetes 对象”
【发布时间】:2022-09-27 18:23:25
【问题描述】:

在项目初始化过程中,我有一个命令:

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

失败并出现错误:

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]

你能建议做什么吗?

  • 您使用的是哪个版本的 Kubernetes? kubectl --version 我想你可能使用的是旧版本。

标签: mongodb kubernetes


【解决方案1】:

您使用的 Kubernetes 版本对于您的 helm 图表来说太新了。 在最新版本的 Kubernetes PodDisruptionBudget 中,位于 policy/v1 而不是 policy/v1beta1 您的图表正在寻找它的地方。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-08-15
    • 1970-01-01
    • 1970-01-01
    • 2021-11-27
    • 2022-11-10
    • 1970-01-01
    • 2018-10-02
    • 1970-01-01
    相关资源
    最近更新 更多