Version: v1.2

Azure Database Mariadb

Description

Terraform configuration for Azure Database Mariadb

Sample

  1. apiVersion: core.oam.dev/v1beta1
  2. kind: Application
  3. metadata:
  4. name: mariadb-backend
  5. spec:
  6. components:
  7. - name: mariadb-backend
  8. type: azure-database-mariadb
  9. properties:
  10. resource_group: "kubevela-group"
  11. location: "West Europe"
  12. server_name: "kubevela"
  13. db_name: "backend"
  14. username: "acctestun"
  15. password: "H@Sh1CoR3!Faked"
  16. writeConnectionSecretToRef:
  17. name: azure-db-conn
  18. 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