Gracefully shutdown executor on SIGTERM

Depends-On: https://review.opendev.org/c/zuul/zuul/+/799701
Change-Id: Id8d9208ee5d5c2c76b181657af0f7a4497c159ec
This commit is contained in:
Albin Vass 2021-07-09 16:14:30 +02:00 committed by Tristan Cacqueray
parent 63685df30b
commit 61ccd501c8
1 changed files with 3 additions and 6 deletions

View File

@ -332,6 +332,9 @@ spec:
ports:
- name: logs
containerPort: 7900
env:
- name: ZUUL_EXECUTOR_SIGTERM_GRACEFUL
value: "1"
volumeMounts:
- name: zuul-config
mountPath: /etc/zuul
@ -359,12 +362,6 @@ spec:
securityContext:
privileged: true
terminationGracePeriodSeconds: {{ spec.executor.terminationGracePeriodSeconds }}
lifecycle:
preStop:
exec:
command: [
"/usr/local/bin/zuul-executor", "graceful"
]
volumes:
- name: zuul-var
emptyDir: {}