Skip to content

Commit

Permalink
Merge openebs#1099
Browse files Browse the repository at this point in the history
1099: chore: update chart to include nvmf env variables r=tiagolobocastro a=tiagolobocastro



Co-authored-by: Tiago Castro <[email protected]>
  • Loading branch information
mayastor-bors and tiagolobocastro committed Feb 16, 2022
2 parents 6b4e69b + 4fabf05 commit 2d7d0c4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion chart/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
{{- if gt $i 0 }}
{{- printf "," }}
{{- end }}
{{- printf "%d" $i }}
{{- printf "%d" (add $i 1) }}
{{- end }}
{{- end }}
13 changes: 9 additions & 4 deletions chart/templates/mayastor-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ spec:
env:
- name: RUST_LOG
value: info,mayastor={{ .Values.mayastorLogLevel }}
- name: NVMF_TCP_MAX_QPAIRS_PER_CTRL
# Current recommendation is to set this value to be the number of cores provided to mayastor (see -l argument) plus 1.
value: "{{ add .Values.mayastorCpuCount 1 }}"
- name: NVMF_TCP_MAX_QUEUE_DEPTH
value: "32"
- name: MY_NODE_NAME
valueFrom:
fieldRef:
Expand Down Expand Up @@ -74,12 +79,12 @@ spec:
# pressure unless they exceed those limits. limits and requests must be the same.
limits:
cpu: "{{ .Values.mayastorCpuCount }}"
memory: "512Mi"
hugepages-2Mi: "{{ .Values.mayastorHugePagesGiB }}Gi"
memory: "1Gi"
hugepages-2Mi: "{{ add .Values.mayastorHugePagesGiB 1 }}Gi"
requests:
cpu: "{{ .Values.mayastorCpuCount }}"
memory: "512Mi"
hugepages-2Mi: "{{ .Values.mayastorHugePagesGiB }}Gi"
memory: "1Gi"
hugepages-2Mi: "{{ add .Values.mayastorHugePagesGiB 1 }}Gi"
ports:
- containerPort: 10124
protocol: TCP
Expand Down
2 changes: 1 addition & 1 deletion deploy/csi-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
# the same.
containers:
- name: mayastor-csi
image: mayadata/mayastor:v1.0.0
image: mayadata/mayastor:v1.0.1
imagePullPolicy: IfNotPresent
# we need privileged because we mount filesystems and use mknod
securityContext:
Expand Down
11 changes: 8 additions & 3 deletions deploy/mayastor-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,16 @@ spec:
command: ['sh', '-c', 'until nc -vz nats 4222; do echo "Waiting for message bus..."; sleep 1; done;']
containers:
- name: mayastor
image: mayadata/mayastor:v1.0.0
image: mayadata/mayastor:v1.0.1
imagePullPolicy: IfNotPresent
env:
- name: RUST_LOG
value: info,mayastor=info
- name: NVMF_TCP_MAX_QPAIRS_PER_CTRL
# Current recommendation is to set this value to be the number of cores provided to mayastor (see -l argument) plus 1.
value: "2"
- name: NVMF_TCP_MAX_QUEUE_DEPTH
value: "32"
- name: MY_NODE_NAME
valueFrom:
fieldRef:
Expand All @@ -50,10 +55,11 @@ spec:
# The -l argument accepts cpu-list. Indexing starts at zero.
# For example -l 1,2,10-20 means use core 1, 2, 10 to 20.
# Note: Ensure that the CPU resources are updated accordingly.
# If you use 2 CPUs, the CPU: field should also read 2.
# If you use 2 CPUs, the CPU: field should also read 2.
- "-N$(MY_NODE_NAME)"
- "-g$(MY_POD_IP)"
- "-nnats"
- "-y/var/local/mayastor/config.yaml"
- "-l1"
- "-pmayastor-etcd"
command:
Expand All @@ -73,7 +79,6 @@ spec:
# NOTE: Each container must have mem/cpu limits defined in order to
# belong to Guaranteed QoS class, hence can never get evicted in case of
# pressure unless they exceed those limits. limits and requests must be the same.
#
limits:
cpu: "1"
memory: "1Gi"
Expand Down

0 comments on commit 2d7d0c4

Please sign in to comment.