Skip to content

Commit d0d9c8d

Browse files
authored
Remove PV from MySQL component (#1527)
Add startupProbe to mySQL
1 parent 36ec8b3 commit d0d9c8d

26 files changed

+88
-143
lines changed

manifests/v1beta1/components/cert-generator/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33

44
resources:
5-
- cert-generator.yaml
6-
- rbac.yaml
5+
- cert-generator.yaml
6+
- rbac.yaml

manifests/v1beta1/components/controller/kustomization.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33

44
resources:
5-
- controller.yaml
6-
- katib-config.yaml
7-
- rbac.yaml
8-
- service.yaml
9-
- trial-templates.yaml
5+
- controller.yaml
6+
- katib-config.yaml
7+
- rbac.yaml
8+
- service.yaml
9+
- trial-templates.yaml

manifests/v1beta1/components/crd/kustomization.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33

44
resources:
5-
- experiment.yaml
6-
- suggestion.yaml
7-
- trial.yaml
5+
- experiment.yaml
6+
- suggestion.yaml
7+
- trial.yaml

manifests/v1beta1/components/db-manager/db-manager.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ spec:
3434
ports:
3535
- name: api
3636
containerPort: 6789
37-
readinessProbe:
38-
exec:
39-
command: ["/bin/grpc_health_probe", "-addr=:6789"]
40-
initialDelaySeconds: 5
4137
livenessProbe:
4238
exec:
4339
command: ["/bin/grpc_health_probe", "-addr=:6789"]

manifests/v1beta1/components/db-manager/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33

44
resources:
5-
- db-manager.yaml
6-
- service.yaml
5+
- db-manager.yaml
6+
- service.yaml

manifests/v1beta1/components/mysql/kustomization.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33

44
resources:
5-
- mysql.yaml
6-
- pv.yaml
7-
- pvc.yaml
8-
- secret.yaml
9-
- service.yaml
5+
- mysql.yaml
6+
- pvc.yaml
7+
- secret.yaml
8+
- service.yaml

manifests/v1beta1/components/mysql/mysql.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,24 @@ spec:
4545
- "/bin/bash"
4646
- "-c"
4747
- "mysql -D ${MYSQL_DATABASE} -u root -p${MYSQL_ROOT_PASSWORD} -e 'SELECT 1'"
48-
initialDelaySeconds: 5
49-
periodSeconds: 10
50-
timeoutSeconds: 1
48+
periodSeconds: 2
49+
failureThreshold: 10
5150
livenessProbe:
5251
exec:
5352
command:
5453
- "/bin/bash"
5554
- "-c"
5655
- "mysqladmin ping -u root -p${MYSQL_ROOT_PASSWORD}"
57-
initialDelaySeconds: 30
58-
periodSeconds: 10
59-
timeoutSeconds: 5
56+
periodSeconds: 2
57+
failureThreshold: 10
58+
startupProbe:
59+
exec:
60+
command:
61+
- "/bin/bash"
62+
- "-c"
63+
- "mysqladmin ping -u root -p${MYSQL_ROOT_PASSWORD}"
64+
periodSeconds: 15
65+
failureThreshold: 60
6066
volumeMounts:
6167
- name: katib-mysql
6268
mountPath: /var/lib/mysql

manifests/v1beta1/components/mysql/pv.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

manifests/v1beta1/components/mysql/pvc.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ metadata:
44
name: katib-mysql
55
namespace: kubeflow
66
spec:
7-
storageClassName: katib
87
accessModes:
98
- ReadWriteOnce
109
resources:

manifests/v1beta1/components/ui/kustomization.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33

44
resources:
5-
- rbac.yaml
6-
- service.yaml
7-
- ui.yaml
5+
- rbac.yaml
6+
- service.yaml
7+
- ui.yaml

0 commit comments

Comments
 (0)