diff --git a/pkg/ironicapi/deployment.go b/pkg/ironicapi/deployment.go index 48a432b0..9e9a3870 100644 --- a/pkg/ironicapi/deployment.go +++ b/pkg/ironicapi/deployment.go @@ -135,9 +135,16 @@ func Deployment( { Name: ironic.ServiceName + "-" + ironic.APIComponent + "-log", Command: []string{ - "/bin/bash", + "/usr/bin/dumb-init", + }, + Args: []string{ + "--single-child", + "--", + "/usr/bin/tail", + "-n+1", + "-F", + ironic.LogPath, }, - Args: []string{"-c", "tail -n+1 -F " + ironic.LogPath}, Image: instance.Spec.ContainerImage, SecurityContext: &corev1.SecurityContext{ RunAsUser: &runAsUser,