diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index 40d3591392ad382fe8fcadf05ccd42c1b9093dd8..bdcc81a9cee80f55270ad3939224df0eadfb74c4 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -106,7 +106,8 @@ spec: securityContext: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ template "fpm_image" . }}" - command: ["/usr/local/bin/php", "artisan", "schedule:work"] + command: ["/bin/bash", "-c"] + args: ["/usr/local/bin/php artisan schedule:run && /usr/local/bin/php artisan schedule:work"] imagePullPolicy: {{ .Values.image.fpm.pullPolicy }} env: - name: APP_ENV @@ -143,9 +144,6 @@ spec: memory: 100M limits: lifecycle: - postStart: - exec: - command: ["/usr/local/bin/php", "artisan" ,"schedule:run"] preStop: exec: command: ["/usr/local/bin/php", "artisan" ,"schedule:run"]