Skip to content
Snippets Groups Projects
Commit ad5db49c authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

added lifecycle hooks to scheduler

parent 110b33d5
No related branches found
No related tags found
No related merge requests found
......@@ -106,8 +106,7 @@ spec:
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ template "fpm_image" . }}"
command: ["/bin/bash", "-c"]
args: ["/usr/local/bin/php artisan schedule:run && /usr/local/bin/php artisan schedule:work"]
command: ["/usr/local/bin/php", "artisan", "schedule:work"]
imagePullPolicy: {{ .Values.image.fpm.pullPolicy }}
env:
- name: APP_ENV
......@@ -143,6 +142,13 @@ spec:
cpu: 100m
memory: 100M
limits:
lifecycle:
postStart:
exec:
command: ["/usr/local/bin/php", "artisan" ,"schedule:run"]
preStop:
exec:
command: ["/usr/local/bin/php", "artisan" ,"schedule:run"]
- name: worker
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment