Skip to content

Commit

Permalink
chore: update chart to reflect previous deploy configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagolobocastro committed Feb 16, 2022
1 parent 89524a4 commit 4fabf05
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 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 }}
12 changes: 6 additions & 6 deletions chart/templates/mayastor-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ spec:
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 }}
value: "{{ add .Values.mayastorCpuCount 1 }}"
- name: NVMF_TCP_MAX_QUEUE_DEPTH
value: 32
value: "32"
- name: MY_NODE_NAME
valueFrom:
fieldRef:
Expand Down Expand Up @@ -79,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
14 changes: 7 additions & 7 deletions deploy/mayastor-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ spec:
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
value: "2"
- name: NVMF_TCP_MAX_QUEUE_DEPTH
value: 32
value: "32"
- name: MY_NODE_NAME
valueFrom:
fieldRef:
Expand All @@ -60,7 +60,7 @@ spec:
- "-g$(MY_POD_IP)"
- "-nnats"
- "-y/var/local/mayastor/config.yaml"
- "-l0"
- "-l1"
- "-pmayastor-etcd"
command:
- mayastor
Expand All @@ -81,12 +81,12 @@ spec:
# pressure unless they exceed those limits. limits and requests must be the same.
limits:
cpu: "1"
memory: "512Mi"
hugepages-2Mi: "1Gi"
memory: "1Gi"
hugepages-2Mi: "2Gi"
requests:
cpu: "1"
memory: "512Mi"
hugepages-2Mi: "1Gi"
memory: "1Gi"
hugepages-2Mi: "2Gi"
ports:
- containerPort: 10124
protocol: TCP
Expand Down

0 comments on commit 4fabf05

Please sign in to comment.