Skip to content

Commit b83dbf0

Browse files
committed
fix: remove autoscaler
Signed-off-by: Andre Nogueira <andre.nogueira@mollie.com>
1 parent d58c939 commit b83dbf0

5 files changed

Lines changed: 1 addition & 73 deletions

File tree

kubernetes/chart/README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ The open source Sourcegraph alternative. Sourcebot gives you a powerful interfac
2424
| additionalLabels | object | `{}` | Add extra labels to all resources. |
2525
| affinity | object | `{}` | Set affinity rules for pod scheduling. Defaults to soft anti-affinity if not set. See: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/ |
2626
| args | list | `[]` | Override the default arguments of the container. |
27-
| autoscaling | object | `{"enabled":false,"maxReplicas":3,"minReplicas":1,"targetCPUUtilizationPercentage":80,"targetMemoryUtilizationPercentage":80}` | Configure Horizontal Pod Autoscaler. |
28-
| autoscaling.enabled | bool | `false` | Enable or disable Horizontal Pod Autoscaler. |
29-
| autoscaling.maxReplicas | int | `3` | Maximum number of replicas. |
30-
| autoscaling.minReplicas | int | `1` | Minimum number of replicas. |
31-
| autoscaling.targetCPUUtilizationPercentage | int | `80` | Target CPU utilization percentage for autoscaling. |
32-
| autoscaling.targetMemoryUtilizationPercentage | int | `80` | Target memory utilization percentage for autoscaling. |
3327
| command | list | `[]` | Override the default command of the container. |
3428
| config | object | `{"$schema":"https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json","connections":{},"settings":{}}` | Configure Sourcebot-specific application settings. |
3529
| containerSecurityContext | object | `{}` | Set the container-level security context. |

kubernetes/chart/templates/hpa.yaml

Lines changed: 0 additions & 33 deletions
This file was deleted.

kubernetes/chart/templates/pdb.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if and $.Values.podDisruptionBudget.enabled (gt (int $.Values.replicaCount) 1) }}
1+
{{- if and $.Values.podDisruptionBudget.enabled (gt (int $.Values.replicaCount) 1) }}
22
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
33
kind: PodDisruptionBudget
44
metadata:

kubernetes/chart/values.schema.json

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -336,26 +336,6 @@
336336
"startupProbe": {
337337
"$ref": "#/definitions/probe"
338338
},
339-
"autoscaling": {
340-
"type": "object",
341-
"properties": {
342-
"enabled": {
343-
"type": "boolean"
344-
},
345-
"minReplicas": {
346-
"type": "integer"
347-
},
348-
"maxReplicas": {
349-
"type": "integer"
350-
},
351-
"targetCPUUtilizationPercentage": {
352-
"type": "integer"
353-
},
354-
"targetMemoryUtilizationPercentage": {
355-
"type": "integer"
356-
}
357-
}
358-
},
359339
"volumes": {
360340
"type": "array",
361341
"items": {

kubernetes/chart/values.yaml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -198,19 +198,6 @@ startupProbe:
198198
# -- Initial delay before the first probe.
199199
periodSeconds: 30
200200

201-
# -- Configure Horizontal Pod Autoscaler.
202-
autoscaling:
203-
# -- Enable or disable Horizontal Pod Autoscaler.
204-
enabled: false
205-
# -- Minimum number of replicas.
206-
minReplicas: 1
207-
# -- Maximum number of replicas.
208-
maxReplicas: 3
209-
# -- Target CPU utilization percentage for autoscaling.
210-
targetCPUUtilizationPercentage: 80
211-
# -- Target memory utilization percentage for autoscaling.
212-
targetMemoryUtilizationPercentage: 80
213-
214201
# -- Define additional volumes.
215202
# See: https://kubernetes.io/docs/concepts/storage/volumes/
216203
volumes: []

0 commit comments

Comments
 (0)