Skip to content

Commit e2fae3b

Browse files
committed
removed replicas: 1 from mariadb deployment
Setting `replicas: 1` on the mariadb deployment causes problems in our sandbox environment where an idler scales down workloads to save costs. The idler and the ReplicaSet fight, which causes the mariadb pod to start and stop infinitely, which eventually leads to InnoDB corruption. For now, solve by not setting `replicas: 1` so that the idler wins. Fixes: https://issues.redhat.com/browse/RHODS-7771
1 parent 1bcdd77 commit e2fae3b

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

config/internal/mariadb/deployment.yaml.tmpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ metadata:
88
app: mariadb-{{.Name}}
99
component: data-science-pipelines
1010
spec:
11-
replicas: 1
1211
strategy:
1312
# Need this since backing PVC is ReadWriteOnce,
1413
# which creates resource lock condition in default

controllers/testdata/declarative/case_0/expected/created/mariadb_deployment.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ metadata:
88
app: mariadb-testdsp0
99
component: data-science-pipelines
1010
spec:
11-
replicas: 1
1211
strategy:
1312
type: Recreate # Need this since backing PVC is ReadWriteOnce, which creates resource lock condition in default Rolling strategy
1413
selector:

controllers/testdata/declarative/case_2/expected/created/mariadb_deployment.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ metadata:
88
app: mariadb-testdsp2
99
component: data-science-pipelines
1010
spec:
11-
replicas: 1
1211
strategy:
1312
type: Recreate # Need this since backing PVC is ReadWriteOnce, which creates resource lock condition in default Rolling strategy
1413
selector:

0 commit comments

Comments
 (0)