influxdata / influxdata-operator

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

Backup data stay in kubernetes volume storage in /var/lib/influxdb/backup #9

Open ondrejFuchs opened 5 years ago

ondrejFuchs commented 5 years ago

We have influx docker in GKE and also infludata-operator. We save backup data of influx to Google storage by influx operator, but data also stay in persistant volume storage in influxdb and after while cause full disk.

We have data in storage, so we want to easy delete data in folder /var/lib/influxdb/backup.

If I add rm to this go script of influxdb operator, operator has no permission to delete data in this folder. What is the easiest way to delete this folder to not cause full disk?

Thanks for reply. Neuron soundware.