Amazon web services 维莱罗赢得';t安装,";additionalProperties不能设置为false;

Amazon web services 维莱罗赢得';t安装,";additionalProperties不能设置为false;,amazon-web-services,kubernetes,velero,Amazon Web Services,Kubernetes,Velero,我通过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 oc

我通过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]--


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

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

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

检查“\”之后是否有空格或制表符。这有时会使bash的行为异常。如果在“\”之后有空格或制表符,则会将其标记为重复检查。这有时会使bash表现得很奇怪。被标记为受欺骗的