@@ -72,14 +72,38 @@ func buildLCorePodTemplateSpec(h *common_helper.Helper, ctx context.Context, ins
7272 Ports : []corev1.ContainerPort {{Name : "llama-stack" , ContainerPort : LlamaStackContainerPort }},
7373 VolumeMounts : llamaStackMounts ,
7474 Env : llamaEnvVars ,
75+ StartupProbe : & corev1.Probe {
76+ ProbeHandler : corev1.ProbeHandler {
77+ HTTPGet : & corev1.HTTPGetAction {
78+ Path : LlamaStackHealthPath ,
79+ Port : intstr .FromInt32 (LlamaStackContainerPort ),
80+ },
81+ },
82+ PeriodSeconds : LlamaStackProbePeriodSeconds ,
83+ TimeoutSeconds : LlamaStackProbeTimeoutSeconds ,
84+ FailureThreshold : LlamaStackStartupProbeFailureThreshold ,
85+ },
86+ LivenessProbe : & corev1.Probe {
87+ ProbeHandler : corev1.ProbeHandler {
88+ HTTPGet : & corev1.HTTPGetAction {
89+ Path : LlamaStackHealthPath ,
90+ Port : intstr .FromInt32 (LlamaStackContainerPort ),
91+ },
92+ },
93+ PeriodSeconds : LlamaStackProbePeriodSeconds ,
94+ TimeoutSeconds : LlamaStackProbeTimeoutSeconds ,
95+ FailureThreshold : LlamaStackProbeFailureThreshold ,
96+ },
7597 ReadinessProbe : & corev1.Probe {
7698 ProbeHandler : corev1.ProbeHandler {
77- TCPSocket : & corev1.TCPSocketAction {
99+ HTTPGet : & corev1.HTTPGetAction {
100+ Path : LlamaStackHealthPath ,
78101 Port : intstr .FromInt32 (LlamaStackContainerPort ),
79102 },
80103 },
81- InitialDelaySeconds : 5 ,
82- PeriodSeconds : 10 ,
104+ PeriodSeconds : LlamaStackProbePeriodSeconds ,
105+ TimeoutSeconds : LlamaStackProbeTimeoutSeconds ,
106+ FailureThreshold : LlamaStackProbeFailureThreshold ,
83107 },
84108 Resources : corev1.ResourceRequirements {
85109 Requests : corev1.ResourceList {
0 commit comments