How could I automatically run daily backup using the role ?
I dont think it is possible to use cronjob object with role ?
Once the awxbackup.yml is executed, the backup works fine, however an object “awxbackup” is created and stays alive in the cluster.
Can someone explain me why this object stays in the cluster since the backup in only executed once when the yaml manifest is applied ?
Create cronjob on your K8s that run playbook or just apply awxbackup.yml to your cluster.
Can someone explain me why this object stays in the cluster since the backup in only executed once when the yaml manifest is applied ?
The AWXBackup can easily be used to restore AWX via “backup_name” for AWXRestore. https://github.com/ansible/awx-operator/tree/devel/roles/restore
In addition, you can configure AWXBackup so that when it is deleted, the backup data on the PVC is also deleted via “clean_backup_on_delete: true”. So the presence of AWXBackup resources can be used to manage backup generations
do you think the playbook method is still an option?
I believe yes, you should try it out
Please be careful not to accidentally delete PV and PVC that includes backup data, as the playbook does not include tasks to retrieve data stored in PVs on minikube.