Skip to content

Commit

Permalink
feat(backend): 配置优雅退出时间 #8977
Browse files Browse the repository at this point in the history
  • Loading branch information
iSecloud committed Jan 8, 2025
1 parent 234d568 commit 285b326
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ spec:
serviceAccountName: {{ include "dbm.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds.worker }}
containers:
- name: "{{ .Chart.Name }}-celery"
securityContext:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ spec:
serviceAccountName: {{ include "dbm.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds.worker }}
containers:
- name: "{{ .Chart.Name }}-celery-pipeline"
securityContext:
Expand Down
3 changes: 3 additions & 0 deletions helm-charts/bk-dbm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ dbm:
# Overrides the image tag whose default is the chart appVersion.
tag: ""

terminationGracePeriodSeconds:
worker: 60

serviceAccount:
# Specifies whether a service account should be created
create: true
Expand Down

0 comments on commit 285b326

Please sign in to comment.