Skip to content

Commit 95be0c7

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

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,10 +16,10 @@ 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:
2525
selector:
@@ -32,19 +32,23 @@ spec:
3232
app.kubernetes.io/name: ydb-disk-manager
3333
app.kubernetes.io/instance: ydb-disk-manager
3434
spec:
35+
updateStrategy:
36+
rollingUpdate:
37+
maxUnavailable: 10%
38+
type: RollingUpdate
3539
priorityClassName: system-node-critical
3640
containers:
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
@@ -17,6 +17,12 @@ spec:
1717
{{- toYaml . | nindent 8 }}
1818
{{- end }}
1919
spec:
20+
updateStrategy:
21+
{{- if eq .Values.updateStrategy "RollingUpdate" }}
22+
rollingUpdate:
23+
maxUnavailable: {{ .Values.maxUnavailable }}
24+
{{- end }}
25+
type: {{ .Values.updateStrategy }}
2026
{{- if .Values.imagePullSecrets }}
2127
{{- with .Values.imagePullSecrets }}
2228
imagePullSecrets:

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)