Gracefully shutdown executor on SIGTERM
Depends-On: https://review.opendev.org/c/zuul/zuul/+/799701 Change-Id: Id8d9208ee5d5c2c76b181657af0f7a4497c159ec
This commit is contained in:
parent
63685df30b
commit
61ccd501c8
@ -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: {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user