From 54951bdc5fd4dc0d3e93a0eece577b3f768e2ab2 Mon Sep 17 00:00:00 2001 From: Jake Spain Date: Mon, 10 Jul 2023 15:10:02 -0400 Subject: [PATCH] Make redis connection options configurable --- helm-charts/vmpooler/templates/deployment-manager.yaml | 6 +++--- helm-charts/vmpooler/values.yaml | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/helm-charts/vmpooler/templates/deployment-manager.yaml b/helm-charts/vmpooler/templates/deployment-manager.yaml index 43091b8..63bda8f 100644 --- a/helm-charts/vmpooler/templates/deployment-manager.yaml +++ b/helm-charts/vmpooler/templates/deployment-manager.yaml @@ -110,11 +110,11 @@ spec: - name: REDIS_SERVER value: 'redis-master' - name: REDIS_CONNECTION_POOL_SIZE - value: "200" + value: '{{ .Values.redis_connection_pool_size }}' - name: REDIS_CONNECTION_POOL_TIMEOUT - value: "40" + value: '{{ .Values.redis_connection_pool_timeout }}' - name: REDIS_RECONNECT_ATTEMPTS - value: "40" + value: '{{ .Values.redis_reconnect_attempts }}' - name: ONDEMAND_REQUEST_TTL value: '{{ .Values.ondemand_request_ttl }}' - name: ONDEMAND_CLONE_LIMIT diff --git a/helm-charts/vmpooler/values.yaml b/helm-charts/vmpooler/values.yaml index f7c1477..188683c 100644 --- a/helm-charts/vmpooler/values.yaml +++ b/helm-charts/vmpooler/values.yaml @@ -16,6 +16,10 @@ vm_lifetime: '2' vm_lifetime_auth: '12' timeout: '15' +redis_connection_pool_size: '200' +redis_connection_pool_timeout: '40' +redis_reconnect_attempts: '40' + :dns_configs: :example: dns_class: dynamic-dns