Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

MySQL Public

NAME

mysql-public

SYNOPSIS

Config Connector compatible yaml files to configure a public MySQL database

CONSUMPTION

Download the package using kpt.

kpt pkg get https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit.git/config-connector/solutions/sql/kpt/mysql-public mysql-public

REQUIREMENTS

  • A working Config Connector instance using the "cnrm-system" service account with either roles/cloudsql.admin or roles/owner in the project managed by Config Connector
  • Cloud SQL Admin API enabled in the project where Config Connector is installed
  • Cloud SQL Admin API enabled in the project managed by Config Connector if it is a different project

SETTERS

NAME VALUE SET BY DESCRIPTION COUNT
authorized-network mysql-public-solution-sample package-default name of authorized network 1
authorized-network-cidr 130.211.0.0/28 package-default authorized network CIDR range 1
instance-name mysql-public-solution package-default name of SQL instance 3
password ${PASSWORD?} PLACEHOLDER SQL password (base64) 1

USAGE

Configure setters using kpt as follows:

kpt cfg set . NAME VALUE

Setting placeholder values is required, changing package-defaults is optional.

password should be set to a base64 encoded value.

kpt cfg set . password $(echo -n 'your-password' | base64)

Optionally set authorized-network, authorized-network-cidr, and instance-name in the manner specified above.

Note: If your SQL Instance is deleted, the name you used will be reserved for 7 days. In order to re-apply this solution, you need to run kpt cfg set . instance-name new-instance-name to change to a new instance name that hasn't been used in the last 7 days.

Once the configuration is satisfactory, apply:

kubectl apply -f .

LICENSE

Apache 2.0 - See LICENSE for more information.