fix(cryptpad): Make autoscaling templatable through technical.cryptpad.autoscaling.*

This commit is contained in:
Thorsten Roßner
2025-12-02 15:12:48 +01:00
parent 99e640b9fc
commit 1c8ea68df1
2 changed files with 17 additions and 1 deletions

View File

@@ -17,7 +17,11 @@ application_config:
# - "diagram" # - "diagram"
autoscaling: 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: config:
maxWorkers: {{ .Values.technical.cryptpad.maxWorkers }} maxWorkers: {{ .Values.technical.cryptpad.maxWorkers }}

View File

@@ -8,6 +8,18 @@ technical:
# Define how many child processes are initially spawned, even without any user accessing Cryptpad. # 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 # Ref.: https://github.com/cryptpad/cryptpad/blob/0dd3c1f53d56dffb06651b86ead6b9b387920173/config/config.example.js#L111
maxWorkers: 4 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 related technical settings
collabora: collabora: