Skip to content

Commit cda0435

Browse files
committed
Refactor mariadb metadata/name
1 parent f55e521 commit cda0435

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

manifests/opendatahub/overlays/metadata-store-mariadb/deployments/mariadb.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@ apiVersion: apps/v1
33
kind: Deployment
44
metadata:
55
labels:
6-
app: mysql
6+
app: mariadb
77
application-crd-id: kubeflow-pipelines
8-
name: mysql
8+
name: mariadb
99
spec:
1010
replicas: 1
1111
strategy:
1212
type: Recreate # Need this since backing PVC is ReadWriteOnce, which creates resource lock condition in default Rolling strategy
1313
selector:
1414
matchLabels:
15-
app: mysql
15+
app: mariadb
1616
application-crd-id: kubeflow-pipelines
1717
template:
1818
metadata:
1919
labels:
20-
app: mysql
20+
app: mariadb
2121
application-crd-id: kubeflow-pipelines
2222
spec:
2323
containers:
24-
- name: mysql
24+
- name: mariadb
2525
image: mysql
2626
ports:
2727
- containerPort: 3306
@@ -73,9 +73,9 @@ spec:
7373
cpu: 500m
7474
memory: 1Gi
7575
volumeMounts:
76-
- name: mysql-persistent-storage
76+
- name: mariadb-persistent-storage
7777
mountPath: /var/lib/mysql
7878
volumes:
79-
- name: mysql-persistent-storage
79+
- name: mariadb-persistent-storage
8080
persistentVolumeClaim:
81-
claimName: mysql-pv-claim
81+
claimName: mariadb-pv-claim

manifests/opendatahub/overlays/metadata-store-mariadb/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ resources:
1313
- ./secrets/mysql-secret.yaml
1414

1515
# PersistentVolumeClaims
16-
- ./persistentvolumeclaims/mysql-pv-claim.yaml
16+
- ./persistentvolumeclaims/mariadb-pv-claim.yaml
1717

1818
# Deployments
1919
- ./deployments/mariadb.yaml

manifests/opendatahub/overlays/metadata-store-mariadb/persistentvolumeclaims/mysql-pv-claim.yaml renamed to manifests/opendatahub/overlays/metadata-store-mariadb/persistentvolumeclaims/mariadb-pv-claim.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: PersistentVolumeClaim
33
metadata:
44
labels:
55
application-crd-id: kubeflow-pipelines
6-
name: mysql-pv-claim
6+
name: mariadb-pv-claim
77
spec:
88
accessModes:
99
- ReadWriteOnce

manifests/opendatahub/overlays/metadata-store-mariadb/services/mysql.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ spec:
1010
protocol: TCP
1111
targetPort: 3306
1212
selector:
13-
app: mysql
13+
app: mariadb
1414
application-crd-id: kubeflow-pipelines

0 commit comments

Comments
 (0)