Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no replica for now #1419

Merged
merged 1 commit into from
Nov 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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