下面是通过Velero和AWS Kubernetes集群安装Valero的问题。
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的,但据我所知,这不是我使用的标志的结果。
发布于 2020-03-04 22:10:47
解决方案:我试图在Kubernetes v1.10集群上安装Velero v1.2.0 (目前还不能升级)。结果发现这两者是不相容的。通过降级到Velero v1.1.0,我成功地安装了,并且这个错误消息消失了。
https://stackoverflow.com/questions/60515594
复制相似问题