@@ -56,36 +56,20 @@ func Deployment(
5656 InitialDelaySeconds : 5 ,
5757 }
5858
59- args := []string {"-c" }
60- if instance .Spec .Debug .Service {
61- args = append (args , common .DebugCommand )
62- livenessProbe .Exec = & corev1.ExecAction {
63- Command : []string {
64- "/bin/true" ,
65- },
66- }
67-
68- readinessProbe .Exec = & corev1.ExecAction {
69- Command : []string {
70- "/bin/true" ,
71- },
72- }
73- } else {
74- args = append (args , KollaServiceCommand )
75- //
76- // https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
77- //
78- livenessProbe .HTTPGet = & corev1.HTTPGetAction {
79- Port : intstr.IntOrString {Type : intstr .Int , IntVal : int32 (PlacementPublicPort )},
80- }
81- readinessProbe .HTTPGet = & corev1.HTTPGetAction {
82- Port : intstr.IntOrString {Type : intstr .Int , IntVal : int32 (PlacementPublicPort )},
83- }
59+ args := []string {"-c" , KollaServiceCommand }
60+ //
61+ // https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
62+ //
63+ livenessProbe .HTTPGet = & corev1.HTTPGetAction {
64+ Port : intstr.IntOrString {Type : intstr .Int , IntVal : int32 (PlacementPublicPort )},
65+ }
66+ readinessProbe .HTTPGet = & corev1.HTTPGetAction {
67+ Port : intstr.IntOrString {Type : intstr .Int , IntVal : int32 (PlacementPublicPort )},
68+ }
8469
85- if instance .Spec .TLS .API .Enabled (service .EndpointPublic ) {
86- livenessProbe .HTTPGet .Scheme = corev1 .URISchemeHTTPS
87- readinessProbe .HTTPGet .Scheme = corev1 .URISchemeHTTPS
88- }
70+ if instance .Spec .TLS .API .Enabled (service .EndpointPublic ) {
71+ livenessProbe .HTTPGet .Scheme = corev1 .URISchemeHTTPS
72+ readinessProbe .HTTPGet .Scheme = corev1 .URISchemeHTTPS
8973 }
9074
9175 envVars := map [string ]env.Setter {}
0 commit comments