diff --git a/helmfile/apps/cryptpad/values.yaml.gotmpl b/helmfile/apps/cryptpad/values.yaml.gotmpl index 159fe0aa..672201ea 100644 --- a/helmfile/apps/cryptpad/values.yaml.gotmpl +++ b/helmfile/apps/cryptpad/values.yaml.gotmpl @@ -17,7 +17,11 @@ application_config: # - "diagram" autoscaling: - enabled: false + enabled: {{ .Values.technical.cryptpad.autoscaling.enabled }} + minReplicas: {{ .Values.technical.cryptpad.autoscaling.minReplicas }} + maxReplicas: {{ .Values.technical.cryptpad.autoscaling.maxReplicas }} + targetCPUUtilizationPercentage: {{ .Values.technical.cryptpad.autoscaling.targetCPUUtilizationPercentage }} + targetMemoryUtilizationPercentage: {{ .Values.technical.cryptpad.autoscaling.targetMemoryUtilizationPercentage }} config: maxWorkers: {{ .Values.technical.cryptpad.maxWorkers }} diff --git a/helmfile/environments/default/technical.yaml.gotmpl b/helmfile/environments/default/technical.yaml.gotmpl index f11e10b9..8e2fe45e 100644 --- a/helmfile/environments/default/technical.yaml.gotmpl +++ b/helmfile/environments/default/technical.yaml.gotmpl @@ -8,6 +8,18 @@ technical: # Define how many child processes are initially spawned, even without any user accessing Cryptpad. # Ref.: https://github.com/cryptpad/cryptpad/blob/0dd3c1f53d56dffb06651b86ead6b9b387920173/config/config.example.js#L111 maxWorkers: 4 + # Autoscaling options + autoscaling: + # Enable the Autoscaling + enabled: false + # Minimal numbers of replicas + minReplicas: 1 + # Maximum numbers of replicas + maxReplicas: 100 + # Percentage of the targeted CPU Utilization + targetCPUUtilizationPercentage: 80 + # Percentage of the targeted Memory Utilization + targetMemoryUtilizationPercentage: 80 # Collabora related technical settings collabora: