Skip to content

Commit

Permalink
perf: Tweak nginx-ingress settings
Browse files Browse the repository at this point in the history
- Add autoscaling (HPA)
- Optimise the resource spec
- Set useComponentLabel for the HPA to target just controller pods (we'll need to re-install ingress)
  • Loading branch information
gazal-k committed Sep 29, 2020
1 parent aac4ba2 commit 3ad8f64
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions apps/stable/nginx-ingress/values.yaml.gotmpl
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
controller:
replicaCount: 3
autoscaling:
enabled: true
minReplicas: 3
maxReplicas: 40
targetCPUUtilizationPercentage: 70
targetMemoryUtilizationPercentage: 70
useComponentLabel: true
publishService:
enabled: true
resources:
limits:
cpu: 100m
memory: 128Mi
memory: 400Mi
requests:
cpu: 50m
memory: 64Mi
cpu: 200m
memory: 400Mi
service:
omitClusterIP: true
{{- if eq .Values.jxRequirements.cluster.provider "kind" }}
Expand All @@ -22,6 +27,7 @@ controller:
{{- end }}
enableHttp: false
defaultBackend:
useComponentLabel: true
service:
omitClusterIP: true
rbac:
Expand Down

0 comments on commit 3ad8f64

Please sign in to comment.