Open yxz13vw opened 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:
influxdbs.influxdata.com
: https://github.com/influxdata/influxdata-operator/blob/master/deploy/crds/influxdata_v1alpha1_influxdb_crd.yamlbackups.influxdata.com
: https://github.com/influxdata/influxdata-operator/blob/master/deploy/crds/influxdata_v1alpha1_backup_crd.yamlrestores.influxdata.com
: https://github.com/influxdata/influxdata-operator/blob/master/deploy/crds/influxdata_v1alpha1_restore_crd.yaml
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"