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 13, 2025
1 parent 620ab74 commit 715dc15
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions helm-charts/bk-dbm/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dependencies:
version: 7.9.8
- name: dbm
repository: file://charts/dbm
version: 0.1.44
version: 0.1.45
- name: dbconfig
repository: file://charts/dbconfig
version: 0.1.13
Expand Down Expand Up @@ -65,5 +65,5 @@ dependencies:
- name: db-dbha
repository: file://charts/db-dbha
version: 0.1.0
digest: sha256:293e4133fc64f236159a34fdbc0ab61a732ef1fa5f7b76fa91c3de18d1c59d48
generated: "2024-09-25T19:33:01.490734+08:00"
digest: sha256:4569713d2f5d7645e6e9e6a33424e0a6ea226da1623acddcea7ee55c5e5af43e
generated: "2025-01-09T10:17:34.916203+08:00"
2 changes: 1 addition & 1 deletion helm-charts/bk-dbm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies:
- condition: dbm.enabled
name: dbm
repository: file://charts/dbm
version: 0.1.44
version: 0.1.45
- condition: dbconfig.enabled
name: dbconfig
repository: file://charts/dbconfig
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/bk-dbm/charts/dbm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ appVersion: 1.5.0-alpha.1556
description: A Helm chart for dbm
name: dbm
type: application
version: 0.1.44
version: 0.1.45
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 715dc15

Please sign in to comment.