29 lines
584 B
YAML
29 lines
584 B
YAML
apiVersion: platform.example.com/v1alpha1
|
|
kind: MySQLDatabase
|
|
metadata:
|
|
name: orders
|
|
namespace: team-a
|
|
spec:
|
|
clusterRef:
|
|
name: mysql-prod
|
|
# If omitted, the controller uses clusterRef.name as the Service DNS name.
|
|
connection:
|
|
host: mysql-prod
|
|
port: 3306
|
|
databaseName: orders
|
|
adminSecretRef:
|
|
name: mysql-prod-admin
|
|
user:
|
|
name: orders-app
|
|
create: true
|
|
credentials:
|
|
secretName: orders-db-credentials
|
|
privileges:
|
|
- SELECT
|
|
- INSERT
|
|
- UPDATE
|
|
- DELETE
|
|
charset: utf8mb4
|
|
collation: utf8mb4_0900_ai_ci
|
|
deletionPolicy: Retain
|