Skip to content

Commit 315bca6

Browse files
committed
feat(vpa): improve requests
1 parent 87a995f commit 315bca6

2 files changed

Lines changed: 13 additions & 35 deletions

File tree

monitoring/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ vmalert:
8484
enabled: true
8585
spec:
8686
evaluationInterval: 60s
87+
resources:
88+
requests:
89+
cpu: 200m
90+
memory: 256Mi
8791

8892
vmauth:
8993
enabled: false

storage/vpa.yml

Lines changed: 9 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ spec:
99
kind: DaemonSet
1010
name: longhorn-manager
1111
updatePolicy:
12-
updateMode: "Auto"
12+
updateMode: "InPlaceOrRecreate"
1313
---
1414
apiVersion: "autoscaling.k8s.io/v1"
1515
kind: VerticalPodAutoscaler
@@ -22,7 +22,7 @@ spec:
2222
kind: DaemonSet
2323
name: longhorn-csi-plugin
2424
updatePolicy:
25-
updateMode: "Auto"
25+
updateMode: "InPlaceOrRecreate"
2626
---
2727
apiVersion: "autoscaling.k8s.io/v1"
2828
kind: VerticalPodAutoscaler
@@ -35,7 +35,7 @@ spec:
3535
kind: Deployment
3636
name: csi-attacher
3737
updatePolicy:
38-
updateMode: "Auto"
38+
updateMode: "InPlaceOrRecreate"
3939
---
4040
apiVersion: "autoscaling.k8s.io/v1"
4141
kind: VerticalPodAutoscaler
@@ -48,7 +48,7 @@ spec:
4848
kind: Deployment
4949
name: csi-provisioner
5050
updatePolicy:
51-
updateMode: "Auto"
51+
updateMode: "InPlaceOrRecreate"
5252
---
5353
apiVersion: "autoscaling.k8s.io/v1"
5454
kind: VerticalPodAutoscaler
@@ -61,7 +61,7 @@ spec:
6161
kind: Deployment
6262
name: csi-resizer
6363
updatePolicy:
64-
updateMode: "Auto"
64+
updateMode: "InPlaceOrRecreate"
6565
---
6666
apiVersion: "autoscaling.k8s.io/v1"
6767
kind: VerticalPodAutoscaler
@@ -74,33 +74,7 @@ spec:
7474
kind: Deployment
7575
name: csi-snapshotter
7676
updatePolicy:
77-
updateMode: "Auto"
78-
---
79-
apiVersion: "autoscaling.k8s.io/v1"
80-
kind: VerticalPodAutoscaler
81-
metadata:
82-
name: longhorn-admission-webhook-vpa
83-
namespace: longhorn-system
84-
spec:
85-
targetRef:
86-
apiVersion: "apps/v1"
87-
kind: Deployment
88-
name: longhorn-admission-webhook
89-
updatePolicy:
90-
updateMode: "Auto"
91-
---
92-
apiVersion: "autoscaling.k8s.io/v1"
93-
kind: VerticalPodAutoscaler
94-
metadata:
95-
name: longhorn-conversion-webhook-vpa
96-
namespace: longhorn-system
97-
spec:
98-
targetRef:
99-
apiVersion: "apps/v1"
100-
kind: Deployment
101-
name: longhorn-conversion-webhook
102-
updatePolicy:
103-
updateMode: "Auto"
77+
updateMode: "InPlaceOrRecreate"
10478
---
10579
apiVersion: "autoscaling.k8s.io/v1"
10680
kind: VerticalPodAutoscaler
@@ -113,7 +87,7 @@ spec:
11387
kind: Deployment
11488
name: longhorn-driver-deployer
11589
updatePolicy:
116-
updateMode: "Auto"
90+
updateMode: "InPlaceOrRecreate"
11791
---
11892
apiVersion: "autoscaling.k8s.io/v1"
11993
kind: VerticalPodAutoscaler
@@ -126,7 +100,7 @@ spec:
126100
kind: Deployment
127101
name: longhorn-recovery-backend
128102
updatePolicy:
129-
updateMode: "Auto"
103+
updateMode: "InPlaceOrRecreate"
130104
---
131105
apiVersion: "autoscaling.k8s.io/v1"
132106
kind: VerticalPodAutoscaler
@@ -139,4 +113,4 @@ spec:
139113
kind: Deployment
140114
name: longhorn-ui
141115
updatePolicy:
142-
updateMode: "Auto"
116+
updateMode: "InPlaceOrRecreatec"

0 commit comments

Comments
 (0)