Skip to content

Commit

Permalink
Update MariaDB example
Browse files Browse the repository at this point in the history
  • Loading branch information
mmontes11 committed Jun 4, 2024
1 parent 2235b3d commit b200177
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions config/samples/mariadb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ metadata:
name: mariadb
spec:
rootPasswordSecretKeyRef:
name: mariadb
key: root-password
name: mariadb-root
key: password
generate: true

username: mariadb
Expand All @@ -26,29 +26,37 @@ spec:
service:
type: ClusterIP
connection:
secretName: mariadb-repl-conn
secretName: mariadb-conn
secretTemplate:
key: dsn
primaryService:
type: ClusterIP
primaryConnection:
secretName: mariadb-repl-conn-primary
secretName: mariadb-conn-primary
secretTemplate:
key: dsn
secondaryService:
type: ClusterIP
secondaryConnection:
secretName: mariadb-repl-conn-secondary
secretName: mariadb-conn-secondary
secretTemplate:
key: dsn

updateStrategy:
type: ReplicasFirstPrimaryLast

myCnf: |
[mariadb]
bind-address=*
default_storage_engine=InnoDB
binlog_format=row
innodb_autoinc_lock_mode=2
innodb_buffer_pool_size=1024M
max_allowed_packet=256M
metrics:
passwordSecretKeyRef:
name: mariadb-metrics
key: password
generate: true
enabled: true

0 comments on commit b200177

Please sign in to comment.