Skip to content

Commit

Permalink
Fix vm map max count
Browse files Browse the repository at this point in the history
  • Loading branch information
antejavor committed Nov 21, 2024
1 parent 1936f67 commit b97e1f2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
9 changes: 8 additions & 1 deletion charts/memgraph/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,14 @@ spec:
add: ["CHOWN"]
runAsUser: 0
runAsNonRoot: false

{{- if .Values.sysctlInitContainer.enabled }}
- name: init-sysctl
image: busybox
command: ['sh', '-c', 'sysctl -w vm.max_map_count=65530']
securityContext:
privileged: true
runAsUser: 0
{{- end }}
terminationGracePeriodSeconds: {{ .Values.container.terminationGracePeriodSeconds }}
securityContext:
{{- if .Values.useImagePullSecrets }}
Expand Down
6 changes: 5 additions & 1 deletion charts/memgraph/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ affinity:
nodeKey:
nodeValue:


nodeSelector: {}

tolerations: []
Expand Down Expand Up @@ -120,7 +121,6 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template
name: ""


container:
terminationGracePeriodSeconds: 1800
probes:
Expand All @@ -145,3 +145,7 @@ customQueryModules: []
# - volume: ""
# Must be present in the ConfigMap referenced with `volume`
# file: ""


sysctlInitContainer:
enabled: true

0 comments on commit b97e1f2

Please sign in to comment.