influxdata-operator icon indicating copy to clipboard operation
influxdata-operator copied to clipboard

Influxdb backup issue

Open yxz13vw opened this issue 4 years ago • 1 comments

Trying to backup influxdb using the following yaml file:

https://github.com/influxdata/influxdata-operator/blob/master/deploy/crds/influxdata_v1alpha1_backup_cr.yaml

When I run kubectl apply -f influxdb-backup.yaml

I got the error message as follows: error: unable to recognize "influxdb-backup.yaml": no matches for kind "Backup" in version "influxdata.com/v1alpha1"

yxz13vw avatar Jul 23 '20 19:07 yxz13vw

@yxz13vw you might be missing the CustomResourceDefinition for backups.influxdata.com and restores.influxdata.com. List your kubernetes custom resource definitions and look for 'influxdata'.

kubectl get crd -A | grep 'influxdata'

You should see the influxdbs, backups, and restores resources. If not, you might need to apply some or all of the following resource definitions:

  • influxdbs.influxdata.com: https://github.com/influxdata/influxdata-operator/blob/master/deploy/crds/influxdata_v1alpha1_influxdb_crd.yaml
  • backups.influxdata.com: https://github.com/influxdata/influxdata-operator/blob/master/deploy/crds/influxdata_v1alpha1_backup_crd.yaml
  • restores.influxdata.com: https://github.com/influxdata/influxdata-operator/blob/master/deploy/crds/influxdata_v1alpha1_restore_crd.yaml

derektamsen avatar Aug 10 '20 19:08 derektamsen