This check performs regular backups for you CloudSQL instance at specified intervals.
apiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
name: database-backup-check
spec:
interval: 60
databaseBackup:
- maxAge: 6h
gcp:
project: google-project-name
instance: cloudsql-instance-name
Field |
Description |
Scheme |
Required |
description |
Description for the check |
string |
|
display |
Template to display server response in text (overrides default bar format for UI) |
Template |
|
gcp |
Connect to GCP project and instance |
GCPDatabase |
|
icon |
Icon for overwriting default icon on the dashboard |
string |
|
labels |
Labels for the check |
Labels |
|
maxAge |
Max age for backup allowed, eg. 5h30m |
Duration |
|
name |
Name of the check |
string |
Yes |
test |
Template to test the result against |
Template |
|
transform |
Template to transform results to |
Template |
|
Field |
Description |
Scheme |
Required |
project |
Specify GCP project |
string |
Yes |
instance |
Specify GCP instance |
string |
Yes |
gcpConnection |
Set up gcpConnection with GCP endpoint and credentials |
GCPConnection |
|
Field |
Description |
Scheme |
Required |
credentials |
Set GCP credentials |
kommons.EnvVar |
Yes |
endpoint |
Specify GCS HTTP endpoint |
string |
Yes |