open-cluster-management-io / policy-collection

A collection of policy examples for Open Cluster Management
Apache License 2.0
210 stars 253 forks source link

Issues with ETCD-backup-Policy #199

Open ch-stark opened 2 years ago

ch-stark commented 2 years ago

Issues have been reported, policy will be reviewed, tested and updated

gparvin commented 2 years ago

@ch-stark I did not have the reported problem with the commands being re-ordered using our 2.4.1. build. I'm not sure yet if the policy functions as expected. I did have to make some additional edits:

  1. The ClusterRoleBinding points to a service account and the namespace for that service account was needed.
  2. Some of the policy that I copied and pasted ended up missing. It was the volumes for the job. Keep an eye out to see if you see that too.
ch-stark commented 2 years ago

Working on a simpler policy

ch-stark commented 2 years ago

https://github.com/ch-stark/etcd-backup-policy

gparvin commented 2 years ago

I tried getting this working and never made good progress. I suspect we would need to decide if we can have someone focus on fixing this policy.

gparvin commented 2 years ago

Today Christian let me know that the policy linked in comment https://github.com/stolostron/policy-collection/issues/199#issuecomment-1021229256 was a good solution -- tried by someone that gave good feedback. It does involve a custom image that needs to be created that goes along with the policy. So need to decide if we want that to be created under stolostron.

gparvin commented 9 months ago

The nice solution here is currently Tech Preview: https://access.redhat.com/documentation/en-us/openshift_container_platform/4.14/html/backup_and_restore/control-plane-backup-and-restore#creating-automated-etcd-backups_backup-etcd