GoogleCloudPlatform / k8s-config-connector

GCP Config Connector, a Kubernetes add-on for managing GCP resources
https://cloud.google.com/config-connector/docs/overview
Apache License 2.0
900 stars 233 forks source link

Support Backup for GKE #830

Open Jeskz0rd opened 1 year ago

Jeskz0rd commented 1 year ago

Checklist

Describe the feature or resource

Since Backup for GKE became GA, there would be nice to manage resources via Config Connector.

Essentially, this support may be useful for applications that have specific needs, so while deploying an application on GKE the deployment could carry its own app custom backup config.

As an example, a TIER_1 application having its own backup plan may have multiple backups a day, while a TIER_2 application would have a single backup a day.


Couple of use cases:

Based on the product documentation, there are a couple of use cases that this support would be helpful. For instance:

[1] https://cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/how-to/use-terraform-with-backup-for-gke [2] https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/gke_backup_backup_plan [3] https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/gke_backup_backup_plan_iam

Additional information

Importance

No response

maqiuyujoyce commented 1 year ago

Hi @Jeskz0rd , thank you for the request and all the details. Looks like the resource you want Config Connector to support is GKEBackupBackupPlan, right?

If it is important or time sensitive to your project, please reach out to us via Cloud support to prioritize the request.

cehoffman commented 11 months ago

@maqiuyujoyce that resource looks like the right one, but when installing config connector it is not part of the installed CRDs. We have installed 1.112.0 from gs://configconnector-operator/latest/release-bundle.tar.gz

diviner524 commented 11 months ago

It is supported as one of our v1alpha1 (preview) CRDs.

https://github.com/GoogleCloudPlatform/k8s-config-connector/blob/master/crds/gkebackup_v1alpha1_gkebackupbackupplan.yaml

Instructions on how to install v1alpha1 CRDs:

https://cloud.google.com/config-connector/docs/how-to/install-alpha-crds