diff --git a/charts/splunk-connect-for-syslog/templates/statefulset.yaml b/charts/splunk-connect-for-syslog/templates/statefulset.yaml index e6876f04bc..e0031ca184 100644 --- a/charts/splunk-connect-for-syslog/templates/statefulset.yaml +++ b/charts/splunk-connect-for-syslog/templates/statefulset.yaml @@ -214,15 +214,13 @@ spec: {{- end }} livenessProbe: exec: - command: - - /usr/sbin/syslog-ng-ctl healthcheck --timeout 5 + command: ["syslog-ng-ctl", "healthcheck", "--timeout", "5"] initialDelaySeconds: 10 periodSeconds: 3 timeoutSeconds: 5 readinessProbe: exec: - command: - - /usr/sbin/syslog-ng-ctl healthcheck --timeout 5 + command: ["syslog-ng-ctl", "healthcheck", "--timeout", "5"] initialDelaySeconds: 10 failureThreshold: 60 periodSeconds: 10