diff --git a/charts/deepgram-self-hosted/templates/volumes/aws/efs-model-download.job.yaml b/charts/deepgram-self-hosted/templates/volumes/aws/efs-model-download.job.yaml index 1e32e1e..b8cae1e 100644 --- a/charts/deepgram-self-hosted/templates/volumes/aws/efs-model-download.job.yaml +++ b/charts/deepgram-self-hosted/templates/volumes/aws/efs-model-download.job.yaml @@ -10,6 +10,7 @@ metadata: "helm.sh/hook": post-install,post-upgrade "helm.sh/hook-delete-policy": before-hook-creation spec: + ttlSecondsAfterFinished: {{ .Values.engine.ttlSecondsAfterFinished }} template: spec: affinity: diff --git a/charts/deepgram-self-hosted/values.yaml b/charts/deepgram-self-hosted/values.yaml index cd26c3a..a6f7e49 100644 --- a/charts/deepgram-self-hosted/values.yaml +++ b/charts/deepgram-self-hosted/values.yaml @@ -695,6 +695,12 @@ engine: # them. You can explicitly enable or disable this behavior with the state parameter # which supports `"enable"`, `"disabled"`, and `"auto"`. state: "auto" + + # This determines the number of seconds that the Pod will be retained, for the Deepgram + # model manager. As long as this Pod is existing, it will keep a claim on the Kubernetes + # PersistentVolumeClaim, which can cause the PVC to hang in the "terminating" state, if the + # Helm chart is deleted (uninstalled). + ttlSecondsAfterFinished: 900 # -- Configuration options for the optional # [Deepgram License Proxy](https://developers.deepgram.com/docs/license-proxy).