Skip to content

Commit bd88c6d

Browse files
committed
feat: add shutdown grace period
1 parent 60c454d commit bd88c6d

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

templates/postgres/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ apiVersion: "apps/v1"
55
kind: "Deployment"
66
metadata:
77
name: "postgres"
8-
namespace: {{ .Release.Namespace }}"
8+
namespace: {{ .Release.Namespace }}
99
labels:
1010
app: "postgres"
1111
annotations:
@@ -44,7 +44,7 @@ spec:
4444
- name: postgres-storage
4545
persistentVolumeClaim:
4646
claimName: postgres-pv-claim
47-
{{ if eq .Values.nodeGroupLabel }}
47+
{{ if .Values.nodeGroupLabel }}
4848
nodeSelector:
4949
poolName: {{ .Values.nodeGroupLabel }}
5050
{{ end }}

templates/walrus/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ spec:
1515
labels:
1616
app: diffgram-walrus
1717
spec:
18+
terminationGracePeriodSeconds: 7200 # 2 hours
1819
{{ if .Values.nodeGroupLabel }}
1920
nodeSelector:
2021
poolName: {{ .Values.nodeGroupLabel }}

values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ diffgramSettings:
6666
CLOUD_STORAGE_BUCKET: diffgram-testing
6767
ML__CLOUD_STORAGE_BUCKET: diffgram-testing
6868
SERVICE_ACCOUNT_FULL_PATH: /etc/gcp/sa_credentials.json
69-
PROCESS_MEDIA_NUM_VIDEO_THREADS: "1"
70-
PROCESS_MEDIA_NUM_FRAME_THREADS: "4"
71-
DATABASE_CONNECTION_POOL_SIZE: "10"
69+
PROCESS_MEDIA_NUM_VIDEO_THREADS: '"1"'
70+
PROCESS_MEDIA_NUM_FRAME_THREADS: '"4"'
71+
DATABASE_CONNECTION_POOL_SIZE: '"10"'
7272
GOOGLE_APPLICATION_CREDENTIALS: /etc/gcp/sa_credentials.json # Check the volume in deployment.yaml and service_account_secret.yaml
7373

7474
# Set this value if you want to use GCP as your storage. Put your json service account encoded in base 64

0 commit comments

Comments
 (0)