Skip to main content
Version: v1.1

Azure Database Mariadb

Description#

Terraform configuration for Azure Database Mariadb

Sample#

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: mariadb-backend
spec:
components:
- name: mariadb-backend
type: azure-database-mariadb
properties:
resource_group: "kubevela-group"
location: "West Europe"
server_name: "kubevela"
db_name: "backend"
username: "acctestun"
password: "H@Sh1CoR3!Faked"
writeConnectionSecretToRef:
name: azure-db-conn
namespace: vela-system

Specification#

Properties#

NameDescriptionTypeRequiredDefault
server_namemariadb server namestringtrue
db_nameDatabase instance namestringtrue
usernameDatabase instance usernamestringtrue
passwordDatabase instance passwordstringtrue
locationAzure locationstringtrue
resource_groupResource groupstringtrue
writeConnectionSecretToRefThe secret which the cloud resource connection will be written towriteConnectionSecretToReffalse

writeConnectionSecretToRef#

NameDescriptionTypeRequiredDefault
nameThe secret name which the cloud resource connection will be written tostringtrue
namespaceThe secret namespace which the cloud resource connection will be written tostringfalse

Outputs#

If writeConnectionSecretToRef is set, a secret will be generated with these keys as below:

NameDescription
SERVER_NAMEMariadb server name
DB_NAMEdatabase instance name
DB_USERdatabase instance username
DB_PORTdatabase instance port
DB_HOSTdatabase instance host
DB_PASSWORDdatabase instance password
Last updated on by Zheng Xi Zhou