Skip to content

Commit

Permalink
Update security context for the running container
Browse files Browse the repository at this point in the history
  • Loading branch information
as51340 committed Jan 24, 2025
1 parent c736245 commit a145e76
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
6 changes: 6 additions & 0 deletions charts/memgraph-high-availability/templates/coordinators.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ spec:
mountPath: /var/lib/memgraph
- name: memgraph-coordinator-{{ $coordinator.id }}-log-storage
mountPath: /var/log/memgraph
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: [ "ALL" ]
# Run by 'memgraph' user as specified in the Dockerfile

volumeClaimTemplates:
- metadata:
name: memgraph-coordinator-{{ $coordinator.id }}-lib-storage
Expand Down
6 changes: 6 additions & 0 deletions charts/memgraph-high-availability/templates/data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ spec:
mountPath: /var/lib/memgraph
- name: memgraph-data-{{ $data.id }}-log-storage
mountPath: /var/log/memgraph
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: [ "ALL" ]
# Run by 'memgraph' user as specified in the Dockerfile

volumeClaimTemplates:
- metadata:
name: memgraph-data-{{ $data.id }}-lib-storage
Expand Down
7 changes: 3 additions & 4 deletions charts/memgraph-high-availability/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
image:
repository: memgraphacrha.azurecr.io/memgraph/memgraph
#tag: 2.22.0_23_8cb3c39c21
tag: 2.22.0_30_8a58da1477
repository: memgraph/memgraph
tag: 2.22.0
pullPolicy: IfNotPresent
env:
MEMGRAPH_ENTERPRISE_LICENSE: "<your-license>"
Expand All @@ -21,7 +20,7 @@ storage:
libPVCSize: "1Gi"
libStorageAccessMode: "ReadWriteOnce"
# By default the name of the storage class isn't set which means that the default storage class will be used.
# If you set any name, the storage class with such name must exist.
# If you set any name, such storage class must exist.
libStorageClassName:
logPVCSize: "1Gi"
logStorageAccessMode: "ReadWriteOnce"
Expand Down

0 comments on commit a145e76

Please sign in to comment.