Skip to main content
Version: v1.2

Azure DATABASE-MARIADB

Description

Terraform configuration for Azure Database Mariadb

Samples

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
db_nameDatabase instance namestringfalse
locationAzure locationstringfalse
passwordDatabase instance passwordstringfalse
resource_groupResource groupstringfalse
server_namemariadb server namestringfalse
usernameDatabase instance usernamestringfalse
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
DB_HOSTDatabase instance host
DB_NAMEDatabase instance name
DB_PASSWORDDatabase instance password
DB_PORTDatabase instance port
DB_USERDatabase instance username
SERVER_NAMEmariadb server name