influxdata / influxdata-operator

A k8s operator for InfluxDB
MIT License
76 stars 32 forks source link

Influxdb backup issue #17

Open yxz13vw opened 4 years ago

yxz13vw commented 4 years ago

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"

derektamsen commented 4 years ago

@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: