Velero won't install, "additionalProperties cannot be set to false"

3/3/2020

I'm having the following issue installing Valero via the Velero CLI to and AWS Kubernetes cluster.

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

The install fails, with the result:

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]--

The only references to additionalProperties are nested deep in generated .yaml files, in this case the one for backups. I have no idea how this string value is being illegally set to false, but it's not a result of the flags I'm using as far as I can tell.

-- codeblue0000ff
amazon-web-services
kubernetes
velero

1 Answer

3/4/2020

Solution: I was trying to install Velero v1.2.0 on a Kubernetes v1.10 cluster (that I cannot upgrade at the moment). It turns out the two are incompatible. By downgrading to Velero v1.1.0, I was able to successfully install, and this error message disappeared.

-- codeblue0000ff
Source: StackOverflow