A CloudSQLInstance is a managed resource that represents a Google CloudSQL instance.
Type
CRD
Group
database.gcp.crossplane.io
Version
v1beta1
apiVersion: database.gcp.crossplane.io/v1beta1
kind: CloudSQLInstance
A CloudSQLInstanceSpec defines the desired state of a CloudSQLInstance.
CloudSQLInstanceParameters define the desired state of a Google CloudSQL instance. Most of its fields are direct mirror of GCP DatabaseInstance object. See https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1beta4/instances#DatabaseInstance
DiskEncryptionConfiguration: Disk encryption configuration specific to an instance. Applies only to Second Generation instances.
FailoverReplica: The name and status of the failover replica. This property is applicable only to Second Generation instances.
OnPremisesConfiguration: Configuration specific to on-premises instances.
ReplicaNames: The replicas of the instance.
Settings: The user settings.
AuthorizedGaeApplications: The App Engine app IDs that can access this instance. First Generation instances only.
BackupConfiguration is the daily backup configuration for the instance.
BackupRetentionSettings: Backup retention settings.
IPConfiguration: The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled for Second Generation instances.
AuthorizedNetworks: The list of external networks that are allowed to connect to the instance using the IP. In CIDR notation, also known as 'slash' notation (e.g. 192.168.100.0/24).
PrivateNetworkRef sets the PrivateNetwork field by resolving the resource link of the referenced Crossplane Network managed resource.
Policies for referencing.
PrivateNetworkSelector selects a PrivateNetworkRef.
Policies for selection.
LocationPreference is the location preference settings. This allows the instance to be located as near as possible to either an App Engine app or Compute Engine zone for better performance. App Engine co-location is only applicable to First Generation instances.
MaintenanceWindow: The maintenance window for this instance. This specifies when the instance can be restarted for maintenance purposes. Not used for First Generation instances.
SuspensionReason: If the instance state is SUSPENDED, the reason for the suspension.
ProviderConfigReference specifies how the provider that will be used to create, observe, update, and delete this managed resource should be configured.
Policies for referencing.
ProviderReference specifies the provider that will be used to create, observe, update, and delete this managed resource. Deprecated: Please use ProviderConfigReference, i.e. providerConfigRef
Policies for referencing.
PublishConnectionDetailsTo specifies the connection secret config which contains a name, metadata and a reference to secret store config to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource.
WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource. This field is planned to be replaced in a future release in favor of PublishConnectionDetailsTo. Currently, both could be set independently and connection details would be published to both without affecting each other.
A CloudSQLInstanceStatus represents the observed state of a CloudSQLInstance.
CloudSQLInstanceObservation is used to show the observed state of the Cloud SQL resource on GCP.
DiskEncryptionStatus: Disk encryption status specific to an instance. Applies only to Second Generation instances.
FailoverReplica: The name and status of the failover replica. This property is applicable only to Second Generation instances.
IPAddresses: The assigned IP addresses for the instance.
Conditions of the resource.
example-cloudsql-instance
apiVersion: database.gcp.crossplane.io/v1beta1
kind: CloudSQLInstance
metadata:
name: example-cloudsql-instance
spec:
forProvider:
databaseVersion: POSTGRES_11
region: us-west2
settings:
dataDiskSizeGb: 20
tier: db-custom-1-3840
providerConfigRef:
name: example
writeConnectionSecretToRef:
name: example-cloudsql-connection-details
namespace: crossplane-system
© 2022 Upbound, Inc.
Discover the building blocksfor your internal cloud platform.