Skip to content

Commit ea1342e

Browse files
committed
updateStrategy helm values
bump container resources cpu and mem set container resources mem requests==limits
1 parent 5a1b561 commit ea1342e

File tree

4 files changed

+24
-11
lines changed

4 files changed

+24
-11
lines changed

example.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@ kind: DaemonSet
1616
metadata:
1717
name: ydb-disk-manager
1818
labels:
19-
helm.sh/chart: ydb-disk-manager-0.2.5
19+
helm.sh/chart: ydb-disk-manager-0.2.8
2020
app.kubernetes.io/name: ydb-disk-manager
2121
app.kubernetes.io/instance: ydb-disk-manager
22-
app.kubernetes.io/version: "0.2.5"
22+
app.kubernetes.io/version: "0.2.8"
2323
app.kubernetes.io/managed-by: Helm
2424
spec:
25+
updateStrategy:
26+
rollingUpdate:
27+
maxUnavailable: 10%
28+
type: RollingUpdate
2529
selector:
2630
matchLabels:
2731
app.kubernetes.io/name: ydb-disk-manager
@@ -37,14 +41,14 @@ spec:
3741
- name: ydb-disk-manager
3842
securityContext:
3943
privileged: true
40-
image: "cr.yandex/crpl7ipeu79oseqhcgn2/ydb-disk-manager:0.2.5"
44+
image: "cr.yandex/crpl7ipeu79oseqhcgn2/ydb-disk-manager:0.2.8"
4145
imagePullPolicy: IfNotPresent
4246
resources:
4347
limits:
44-
memory: 50Mi
48+
memory: 128Mi
4549
requests:
46-
cpu: 50m
47-
memory: 10Mi
50+
cpu: 100m
51+
memory: 128Mi
4852
env:
4953
- name: DP_DISABLE_PRE_START_CONTAINER
5054
value: "true"

helm/ydb-disk-manager/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ name: ydb-disk-manager
33

44
type: application
55

6-
version: 0.2.7
7-
appVersion: 0.2.7
6+
version: 0.2.8
7+
appVersion: 0.2.8

helm/ydb-disk-manager/templates/daemonset.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ metadata:
55
labels:
66
{{- include "ydb-disk-manager.labels" . | nindent 4 }}
77
spec:
8+
updateStrategy:
9+
{{- if eq .Values.updateStrategy "RollingUpdate" }}
10+
rollingUpdate:
11+
maxUnavailable: {{ .Values.maxUnavailable }}
12+
{{- end }}
13+
type: {{ .Values.updateStrategy }}
814
selector:
915
matchLabels:
1016
{{- include "ydb-disk-manager.selectorLabels" . | nindent 6 }}

helm/ydb-disk-manager/values.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ image:
22
repository: "cr.yandex/crpl7ipeu79oseqhcgn2/ydb-disk-manager"
33
pullPolicy: "IfNotPresent"
44

5+
updateStrategy: "RollingUpdate"
6+
maxUnavailable: "10%"
7+
58
imagePullSecrets: []
69
args: []
710
env:
@@ -10,10 +13,10 @@ env:
1013

1114
resources:
1215
limits:
13-
memory: 50Mi
16+
memory: 128Mi
1417
requests:
15-
cpu: 50m
16-
memory: 10Mi
18+
cpu: 100m
19+
memory: 128Mi
1720

1821
securityContext:
1922
privileged: true

0 commit comments

Comments
 (0)