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

... long live this repo #37

Merged
merged 18 commits into from
Dec 18, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Simplifies scale-1 runtime by disabling galera
  • Loading branch information
solsson committed Nov 24, 2021
commit 194a4485403c32a2a3faa640c1cb3a89314292da
2 changes: 2 additions & 0 deletions variants/scale-1/galera.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[galera]
wsrep_on=OFF
8 changes: 7 additions & 1 deletion variants/scale-1/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -6,4 +6,10 @@ resources:

patchesStrategicMerge:
- replicas-1.yaml
- wsrep-1.yaml
- wsrep-off.yaml

configMapGenerator:
- name: conf-d
behavior: merge
files:
- galera.cnf
12 changes: 0 additions & 12 deletions variants/scale-1/wsrep-1.yaml

This file was deleted.

20 changes: 20 additions & 0 deletions variants/scale-1/wsrep-off.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: mariadb
spec:
template:
spec:
containers:
- name: mariadb
readinessProbe:
exec:
command:
- mysqladmin
- status
initContainers:
- name: init-config
env:
# So the init script can configure galera unconditionally; galera.cnf is overridden to disable wsrep
- name: WSREP_CLUSTER_ADDRESS
value: "gcomm://mariadb-0.mariadb"