We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62cbcba commit 30d3a22Copy full SHA for 30d3a22
1 file changed
manifests/kubernetes/login-mysql.yaml
@@ -43,6 +43,32 @@ spec:
43
image: manojmdocker14/microforge-users-mysql:v1.0.0
44
ports:
45
- containerPort: 3306
46
+ startupProbe:
47
+ exec:
48
+ command:
49
+ - bash
50
+ - "-c"
51
+ - "mysqladmin ping -u root -p${MYSQL_ROOT_PASSWORD}"
52
+ failureThreshold: 30
53
+ periodSeconds: 10
54
+ timeoutSeconds: 5
55
+ livenessProbe:
56
57
58
59
60
61
+ periodSeconds: 20
62
63
+ readinessProbe:
64
65
66
67
68
+ - "mysql -u root -p${MYSQL_ROOT_PASSWORD} -e 'SELECT 1;'"
69
+ initialDelaySeconds: 5
70
71
72
envFrom:
73
- configMapRef:
74
name: login-mysql-config
0 commit comments