File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
test/extended/authentication Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -242,6 +242,20 @@ func keycloakLivenessProbe() *corev1.Probe {
242
242
}
243
243
}
244
244
245
+ func keycloakStartupProbe () * corev1.Probe {
246
+ return & corev1.Probe {
247
+ ProbeHandler : corev1.ProbeHandler {
248
+ HTTPGet : & corev1.HTTPGetAction {
249
+ Path : "/health/started" ,
250
+ Port : intstr .FromInt (9000 ),
251
+ Scheme : corev1 .URISchemeHTTPS ,
252
+ },
253
+ },
254
+ FailureThreshold : 20 ,
255
+ PeriodSeconds : 10 ,
256
+ }
257
+ }
258
+
245
259
func keycloakEnvVars () []corev1.EnvVar {
246
260
return []corev1.EnvVar {
247
261
{
@@ -312,6 +326,7 @@ func keycloakContainers() []corev1.Container {
312
326
},
313
327
LivenessProbe : keycloakLivenessProbe (),
314
328
ReadinessProbe : keycloakReadinessProbe (),
329
+ StartupProbe : keycloakStartupProbe (),
315
330
Command : []string {
316
331
"/opt/keycloak/bin/kc.sh" ,
317
332
"start-dev" ,
You can’t perform that action at this time.
0 commit comments