Velero: Installation of v1.3.0 fails on Kubernetes 1.14

Created on 2 Mar 2020  路  2Comments  路  Source: vmware-tanzu/velero

What steps did you take and what happened:
Tried to install Velero v1.3.0 on a K8S 1.14 cluster.

What did you expect to happen:
Successful installation; the documentation says that Kubernetes 1.10+ is supported.

Error messages

Every CRD returns an error when going through kubectl apply:

[error validating "build\\manifests\\velero\\crd\\backups.velero.io-customresourcedefinition.json":
error validating data: ValidationError(CustomResourceDefinition.spec):
unknown field "preserveUnknownFields" in io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec;
if you choose to ignore these errors, turn validation off with --validate=false,

Environment:

  • Velero v1.3.0
  • Kubernetes v1.14.1
  • Kubernetes client v1.15.4

Most helpful comment

@bgagnon you can provide the --validate=false flag to kubectl apply to bypass this error. We have this documented for 1.13 and earlier clusters (see https://velero.io/docs/v1.3.0/customize-installation/#generate-yaml-only), but looks like we need to update that to apply to 1.14 and earlier.

All 2 comments

This option was first introduced in K8S 1.15; this explains the failure on 1.14.

@bgagnon you can provide the --validate=false flag to kubectl apply to bypass this error. We have this documented for 1.13 and earlier clusters (see https://velero.io/docs/v1.3.0/customize-installation/#generate-yaml-only), but looks like we need to update that to apply to 1.14 and earlier.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vitobotta picture vitobotta  路  3Comments

Berndinox picture Berndinox  路  3Comments

doronmak picture doronmak  路  3Comments

abh picture abh  路  4Comments

onedr0p picture onedr0p  路  3Comments