Skip to content

Commit

Permalink
Added autoscaler for the deployment less demanding
Browse files Browse the repository at this point in the history
  • Loading branch information
kirmorozov committed Apr 4, 2024
1 parent e441dea commit 4419df4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/k8s/autoscaling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
apiVersion: apps/v1
kind: Deployment
name: thesmile
minReplicas: 2
minReplicas: 1
maxReplicas: 20
metrics:
- type: Resource
Expand Down
4 changes: 2 additions & 2 deletions build/k8s/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:

spec:
progressDeadlineSeconds: 600
replicas: 2
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
Expand All @@ -28,7 +28,7 @@ spec:
name: thesmile
resources:
requests:
cpu: 100m
cpu: 10m
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
Expand Down

0 comments on commit 4419df4

Please sign in to comment.