Skip to content

Commit ba2bd65

Browse files
authored
fix: Helm handling of large vm max map count (#218)
1 parent 1052772 commit ba2bd65

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

charts/memgraph-high-availability/templates/coordinators.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ spec:
102102
- name: init-sysctl
103103
image: "{{ $.Values.sysctlInitContainer.image.repository }}:{{ $.Values.sysctlInitContainer.image.tag }}"
104104
imagePullPolicy: {{ $.Values.sysctlInitContainer.image.pullPolicy }}
105-
command: ['sh', '-c', 'sysctl -w vm.max_map_count={{ $.Values.sysctlInitContainer.maxMapCount }}']
105+
command: ['sh', '-c', 'sysctl -w vm.max_map_count={{ int64 $.Values.sysctlInitContainer.maxMapCount }}']
106106
securityContext:
107107
privileged: true
108108
runAsUser: 0

charts/memgraph-high-availability/templates/data.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ spec:
111111
- name: init-sysctl
112112
image: "{{ $.Values.sysctlInitContainer.image.repository }}:{{ $.Values.sysctlInitContainer.image.tag }}"
113113
imagePullPolicy: {{ $.Values.sysctlInitContainer.image.pullPolicy }}
114-
command: ['sh', '-c', 'sysctl -w vm.max_map_count={{ $.Values.sysctlInitContainer.maxMapCount }}']
114+
command: ['sh', '-c', 'sysctl -w vm.max_map_count={{ int64 $.Values.sysctlInitContainer.maxMapCount }}']
115115
securityContext:
116116
privileged: true
117117
runAsUser: 0

charts/memgraph-lab/values.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ ingress:
8282

8383
gateway:
8484
enabled: false
85-
gatewayClassName: "" # Required when creating a new Gateway. Name of a pre-existing GatewayClass (e.g., "eg" for Envoy Gateway)
86-
existingGatewayName: "" # If set, skip Gateway creation and attach routes to this existing Gateway
87-
existingGatewayNamespace: "" # Namespace of the existing Gateway. Defaults to release namespace if empty
85+
gatewayClassName: "" # Required when creating a new Gateway. Name of a pre-existing GatewayClass (e.g., "eg" for Envoy Gateway)
86+
existingGatewayName: "" # If set, skip Gateway creation and attach routes to this existing Gateway
87+
existingGatewayNamespace: "" # Namespace of the existing Gateway. Defaults to release namespace if empty
8888
annotations: {}
8989
labels: {}
9090
listeners:
@@ -98,7 +98,7 @@ gateway:
9898
# certificateRefs:
9999
# - name: lab-tls-secret
100100
httpRoute:
101-
sectionNames: [] # Listener names to attach to on the Gateway. If empty, derived from listeners[].name
101+
sectionNames: [] # Listener names to attach to on the Gateway. If empty, derived from listeners[].name
102102
# - lab-http
103103
hostnames: []
104104
# - lab.example.com

charts/memgraph/templates/statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ spec:
4444
- name: init-sysctl
4545
image: "{{ .Values.sysctlInitContainer.image.repository }}:{{ .Values.sysctlInitContainer.image.tag }}"
4646
imagePullPolicy: {{ .Values.sysctlInitContainer.image.pullPolicy }}
47-
command: ['sh', '-c', 'sysctl -w vm.max_map_count={{ .Values.sysctlInitContainer.maxMapCount }}']
47+
command: ['sh', '-c', 'sysctl -w vm.max_map_count={{ int64 .Values.sysctlInitContainer.maxMapCount }}']
4848
securityContext:
4949
privileged: true
5050
runAsUser: 0

0 commit comments

Comments
 (0)