Skip to content
This repository was archived by the owner on Jul 13, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions internal/controller/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ const (
LCoreConfigMountPath = "/app-root/lightspeed-stack.yaml"
LCoreUserDataMountPath = "/tmp/data"
ForceReloadAnnotationKey = "ols.openshift.io/force-reload"
// Health probe settings for the llama-stack/OGX container.
// The startup probe allows up to 30 failures (300s) for the slow initialization,
// while liveness and readiness probes use a tighter threshold of 3 failures.
LlamaStackHealthPath = "/v1/health"
LlamaStackProbePeriodSeconds = int32(10)
LlamaStackProbeTimeoutSeconds = int32(5)
LlamaStackStartupProbeFailureThreshold = int32(30)
LlamaStackProbeFailureThreshold = int32(3)

// Data Exporter
ExporterConfigVolumeName = "exporter-config"
Expand Down
30 changes: 27 additions & 3 deletions internal/controller/lcore_deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,38 @@ func buildLCorePodTemplateSpec(h *common_helper.Helper, ctx context.Context, ins
Ports: []corev1.ContainerPort{{Name: "llama-stack", ContainerPort: LlamaStackContainerPort}},
VolumeMounts: llamaStackMounts,
Env: llamaEnvVars,
StartupProbe: &corev1.Probe{
ProbeHandler: corev1.ProbeHandler{
HTTPGet: &corev1.HTTPGetAction{
Path: LlamaStackHealthPath,
Port: intstr.FromInt32(LlamaStackContainerPort),
},
},
PeriodSeconds: LlamaStackProbePeriodSeconds,
TimeoutSeconds: LlamaStackProbeTimeoutSeconds,
FailureThreshold: LlamaStackStartupProbeFailureThreshold,
},
LivenessProbe: &corev1.Probe{
ProbeHandler: corev1.ProbeHandler{
HTTPGet: &corev1.HTTPGetAction{
Path: LlamaStackHealthPath,
Port: intstr.FromInt32(LlamaStackContainerPort),
},
},
PeriodSeconds: LlamaStackProbePeriodSeconds,
TimeoutSeconds: LlamaStackProbeTimeoutSeconds,
FailureThreshold: LlamaStackProbeFailureThreshold,
},
ReadinessProbe: &corev1.Probe{
ProbeHandler: corev1.ProbeHandler{
TCPSocket: &corev1.TCPSocketAction{
HTTPGet: &corev1.HTTPGetAction{
Path: LlamaStackHealthPath,
Port: intstr.FromInt32(LlamaStackContainerPort),
},
},
InitialDelaySeconds: 5,
PeriodSeconds: 10,
PeriodSeconds: LlamaStackProbePeriodSeconds,
TimeoutSeconds: LlamaStackProbeTimeoutSeconds,
FailureThreshold: LlamaStackProbeFailureThreshold,
},
Resources: corev1.ResourceRequirements{
Requests: corev1.ResourceList{
Expand Down
Loading