Skip to content

Commit

Permalink
fix(resource): add HEALTHCHECK_PORT env in the statefulset (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhra303 authored Apr 8, 2024
1 parent 730bd67 commit f5d557d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/resources/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ func GetDragonflyResources(ctx context.Context, df *resourcesv1.Dragonfly) ([]cl
},
},
Args: DefaultDragonflyArgs,
Env: df.Spec.Env,
Env: append(df.Spec.Env, corev1.EnvVar{
Name: "HEALTHCHECK_PORT",
Value: fmt.Sprintf("%d", DragonflyAdminPort),
}),
ReadinessProbe: &corev1.Probe{
ProbeHandler: corev1.ProbeHandler{
Exec: &corev1.ExecAction{
Expand Down

0 comments on commit f5d557d

Please sign in to comment.