11# ##############################################################
2- # ConfigMap – runtime flags, add more keys as needed
2+ # ConfigMap
33# ##############################################################
44apiVersion : v1
55kind : ConfigMap
@@ -25,15 +25,15 @@ spec:
2525 labels :
2626 app : memgraph
2727 annotations :
28- credentials-hash : " ${CREDENTIALS_HASH}" # forces rolling restart
28+ credentials-hash : " ${CREDENTIALS_HASH}"
2929 spec :
30- initContainers :
31- - name : init-sysctl
32- image : busybox:1.28
33- command : ["sysctl", "-w", " vm.max_map_count=262144"]
34- securityContext : { privileged: true }
30+ # ── sysctl without privileged container ──────────────────
31+ securityContext :
32+ sysctls :
33+ - name : vm.max_map_count
34+ value : " 262144 "
3535
36- # Prefer (but don't require) the cheap B2ms nodes
36+ # node-affinity & tolerations (unchanged) …
3737 affinity :
3838 nodeAffinity :
3939 preferredDuringSchedulingIgnoredDuringExecution :
4343 - key : beta.kubernetes.io/instance-type
4444 operator : In
4545 values : [ Standard_B2ms ]
46-
4746 tolerations :
4847 - key : " node.kubernetes.io/memory-pressure"
4948 operator : " Exists"
5857 - { containerPort: 7444, name: http }
5958 - { containerPort: 3000, name: ui }
6059
61- # secrets ➜ env vars
6260 env :
6361 - name : MEMGRAPH_USERNAME
6462 valueFrom : { secretKeyRef: { name: memgraph-credentials, key: username } }
6967 - name : MG_PASSWORD
7068 valueFrom : { secretKeyRef: { name: memgraph-credentials, key: password } }
7169
72- # load everything from the config-map automatically
7370 envFrom :
7471 - configMapRef : { name: memgraph-config }
7572
76- # durable volumes
7773 volumeMounts :
7874 - { name: data, mountPath: /data }
7975 - { name: logs, mountPath: /var/log/memgraph }
10197 persistentVolumeClaim : { claimName: memgraph-logs }
10298---
10399# ##############################################################
104- # Persistent Volume Claims – backed by Standard HDD Azure Disk
100+ # PVCs
105101# ##############################################################
106102apiVersion : v1
107103kind : PersistentVolumeClaim
@@ -122,7 +118,7 @@ spec:
122118 resources : { requests: { storage: 5Gi } }
123119---
124120# ##############################################################
125- # Service – public LoadBalancer with stable DNS label
121+ # Service
126122# ##############################################################
127123apiVersion : v1
128124kind : Service
0 commit comments