Skip to content

Commit 254a0b4

Browse files
author
Martin Linkhorst
committed
add VPA for ALBC and make memory configurable
1 parent 74ab4de commit 254a0b4

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

cluster/config-defaults.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,3 +1290,6 @@ aws_vpc_cni_custom_networking: "false"
12901290
aws_vpc_cni_enable_network_policy: "false"
12911291
# specify the network policy enforcement mode.
12921292
aws_vpc_cni_network_policy_enforcing_mode: "standard"
1293+
1294+
# aws-load-balancer-controller resource settings
1295+
aws_load_balancer_controller_mem: "200Mi"

cluster/manifests/aws-load-balancer-controller/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ spec:
4646
resources:
4747
limits:
4848
cpu: 100m
49-
memory: 200Mi
49+
memory: {{ .Cluster.ConfigItems.aws_load_balancer_controller_mem }}
5050
requests:
5151
cpu: 100m
52-
memory: 200Mi
52+
memory: {{ .Cluster.ConfigItems.aws_load_balancer_controller_mem }}
5353
securityContext:
5454
allowPrivilegeEscalation: false
5555
readOnlyRootFilesystem: true
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# {{- if eq .Cluster.Provider "zalando-eks"}}
2+
apiVersion: autoscaling.k8s.io/v1
3+
kind: VerticalPodAutoscaler
4+
metadata:
5+
name: aws-load-balancer-controller
6+
namespace: kube-system
7+
labels:
8+
application: kubernetes
9+
component: aws-load-balancer-controller
10+
spec:
11+
targetRef:
12+
apiVersion: apps/v1
13+
kind: Deployment
14+
name: aws-load-balancer-controller
15+
updatePolicy:
16+
updateMode: Auto
17+
resourcePolicy:
18+
containerPolicies:
19+
- containerName: controller
20+
maxAllowed:
21+
memory: {{ .Cluster.ConfigItems.aws_load_balancer_controller_mem }}
22+
# {{- end }}

0 commit comments

Comments
 (0)