Skip to content

Commit

Permalink
no replica for now
Browse files Browse the repository at this point in the history
  • Loading branch information
outductor committed Nov 19, 2023
1 parent 1ace1f0 commit 4a465e4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,25 @@ spec:
accessModes:
- ReadWriteOnce

service:
type: ClusterIP
livenessProbe:
exec:
command:
- bash
- -c
- mysql -u root -p"${MARIADB_ROOT_PASSWORD}" -e "SELECT 1;"
initialDelaySeconds: 20
periodSeconds: 10
timeoutSeconds: 5

readinessProbe:
exec:
command:
- bash
- -c
- mysql -u root -p"${MARIADB_ROOT_PASSWORD}" -e "SELECT 1;"
initialDelaySeconds: 20
periodSeconds: 10
timeoutSeconds: 5

metrics:
exporter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,47 +21,6 @@ spec:

port: 3306

replicas: 3

replication:
enabled: true
primary:
podIndex: 0
automaticFailover: true
replica:
waitPoint: AfterSync
connectionTimeout: 10s
connectionRetries: 10
syncTimeout: 10s

primaryService:
type: ClusterIP
primaryConnection:
secretName: primary-mariadb-conn
secretTemplate:
key: dsn

affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- topologyKey: "kubernetes.io/hostname"

tolerations:
- key: "mariadb.mmontes.io/ha"
operator: "Exists"
effect: "NoSchedule"

podDisruptionBudget:
minAvailable: "66%"

myCnf: |
[mysqld]
bind-address=0.0.0.0
default_storage_engine=InnoDB
binlog_format=row
innodb_autoinc_lock_mode=2
max_allowed_packet=256M
volumeClaimTemplate:
resources:
requests:
Expand Down

0 comments on commit 4a465e4

Please sign in to comment.