gpt4 book ai didi

amazon-web-services - Velero 无法安装, "additionalProperties cannot be set to false"

转载 作者:行者123 更新时间:2023-12-02 12:28:56 25 4
gpt4 key购买 nike

我在通过 Velero CLI 将 Valero 安装到 AWS Kubernetes 集群时遇到以下问题。

velero install \
--provider aws \
--bucket $BUCKET \
--secret-file ./credentials-velero \ --use-restic --wait \
--plugins velero/velero-plugin-for-aws:v1.0.0

安装失败,结果:
An error occurred:

Error installing Velero. Use `kubectl logs deploy/velero -n velero` to check the deploy logs: Error creating resource CustomResourceDefinition/backups.velero.io: CustomResourceDefinition.apiextensions.k8s.io "backups.velero.io" is invalid: [spec.validation.openAPIV3Schema.properties[spec].properties[labelSelector].properties[matchLabels].additionalProperties: Forbidden: additionalProperties cannot be set to false, spec.validation.openAPIV3Schema.properties[spec].properties[hooks].properties[resources].items.properties[labelSelector].properties[matchLabels].additionalProperties: Forbidden: additionalProperties cannot be set to false]--


对附加属性的唯一引用嵌套在生成的 .yaml 文件的深处,在本例中是用于备份的文件。我不知道这个字符串值是如何被非法设置为 false 的,但据我所知,这不是我使用的标志的结果。

最佳答案

解决方案:我试图在 Kubernetes v1.10 集群上安装 Velero v1.2.0(我目前无法升级)。事实证明两者是不相容的。通过降级到 Velero v1.1.0,我能够成功安装,并且此错误消息消失了。

关于amazon-web-services - Velero 无法安装, "additionalProperties cannot be set to false",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60515594/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com