Skip to content

Commit

Permalink
fix: Security context experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Christie committed Feb 20, 2025
1 parent f1d7516 commit afd9b4c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions roles/graph/templates/statefulset.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ spec:
name: graph
spec:
serviceAccountName: {{ graph_sa }}
securityContext:
fsGroup: 2000

{% if graph_node_affinity_value %}
# We must have a 'core' node
Expand Down Expand Up @@ -94,6 +92,11 @@ spec:
requests:
cpu: 1000m
memory: 1Gi
securityContext:
runAsUser: 7474
runAsGroup: 7474
fsGroup: 7474
allowPrivilegeEscalation: false
volumeMounts:
- mountPath: /data
name: graph-volume
Expand Down Expand Up @@ -170,6 +173,11 @@ spec:
requests:
cpu: "{{ graph_core_request }}"
memory: "{{ graph_mem_request_g }}Gi"
securityContext:
runAsUser: 7474
runAsGroup: 7474
fsGroup: 7474
allowPrivilegeEscalation: false
volumeMounts:
- mountPath: /data
name: graph-volume
Expand Down

0 comments on commit afd9b4c

Please sign in to comment.