Skip to content

Commit

Permalink
fix(demo): adjust number of replicas to spread replicas
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklasfrahm committed Aug 22, 2022
1 parent 50c3157 commit 6f4efaa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/demo/app/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
app.kubernetes.io/name: kuard
# I don't want to mess with anti-affinities so let's
# just create enough pods to spread them across nodes.
replicas: 9
replicas: 6
template:
metadata:
labels:
Expand Down
14 changes: 14 additions & 0 deletions deploy/demo/traefik/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@ traefik:
enabled: yes
isDefaultClass: yes

autoscaling:
enabled: true
minReplicas: 6
maxReplicas: 9
metrics:
- type: Resource
resource:
name: cpu
targetAverageUtilization: 60
- type: Resource
resource:
name: memory
targetAverageUtilization: 60

service:
enabled: yes
type: LoadBalancer
Expand Down

0 comments on commit 6f4efaa

Please sign in to comment.