diff options
author | Santo Cariotti <santo@dcariotti.me> | 2025-01-15 18:06:10 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2025-01-15 18:06:10 +0100 |
commit | a8a948998cd12c5bfbb24a1fcf123901c70cb1c0 (patch) | |
tree | e56d3f9ae9893247e9ccf1e327f7feb444f6ac46 | |
parent | 26a515c2bb2b598b2d103644851ce04622b998cf (diff) |
Add resources for cas deployment
-rw-r--r-- | yaml/deployments/cas.yaml | 7 | ||||
-rw-r--r-- | yaml/networking/balance.yaml | 36 |
2 files changed, 25 insertions, 18 deletions
diff --git a/yaml/deployments/cas.yaml b/yaml/deployments/cas.yaml index fe7c082..1b106ad 100644 --- a/yaml/deployments/cas.yaml +++ b/yaml/deployments/cas.yaml @@ -21,6 +21,13 @@ spec: matchLabels: app: cas-app topologyKey: "kubernetes.io/hostname" + resources: + requests: + cpu: "200m" + memory: "500Mi" + limits: + cpu: "500m" + memory: "1Gi" containers: - name: cas image: ghcr.io/cas-4/backend:latest diff --git a/yaml/networking/balance.yaml b/yaml/networking/balance.yaml index dd0f17b..a2367e7 100644 --- a/yaml/networking/balance.yaml +++ b/yaml/networking/balance.yaml @@ -10,28 +10,28 @@ spec: minReplicas: 1 maxReplicas: 10 metrics: - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: 70 - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: 80 + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 70 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 70 behavior: scaleUp: stabilizationWindowSeconds: 60 policies: - - type: Percent - value: 100 - periodSeconds: 15 + - type: Percent + value: 100 + periodSeconds: 15 scaleDown: stabilizationWindowSeconds: 300 policies: - - type: Percent - value: 100 - periodSeconds: 15 + - type: Percent + value: 100 + periodSeconds: 15 |