Skip to content

Commit 4c15e05

Browse files
committed
add VPA definitions for wordpress
1 parent 130297b commit 4c15e05

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

flux-modules/extras/wordpress/deploy/kustomization.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ resources:
77
- persistent-volume.yaml
88
- wp-helmrelease.yaml
99
- wp-apache-dashboard-cm.yaml
10+
- wp-vpa.yaml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apiVersion: autoscaling.k8s.io/v1
2+
kind: VerticalPodAutoscaler
3+
metadata:
4+
name: wp-${wp_name}
5+
spec:
6+
targetRef:
7+
apiVersion: "apps/v1"
8+
kind: Deployment
9+
name: wp-${wp_name}
10+
updatePolicy:
11+
updateMode: "Auto"
12+
resourcePolicy:
13+
containerPolicies:
14+
- containerName: "wordpress"
15+
minAllowed:
16+
cpu: 50m
17+
memory: 128Mi
18+
maxAllowed:
19+
cpu: 500m
20+
memory: 512Mi
21+
controlledResources: ["cpu", "memory"]
22+
- containerName: "metrics"
23+
minAllowed:
24+
cpu: 10m
25+
memory: 32Mi
26+
maxAllowed:
27+
cpu: 500m
28+
memory: 250Mi
29+
controlledResources: ["cpu", "memory"]

0 commit comments

Comments
 (0)