Skip to content

Commit cdba384

Browse files
author
Roey Prat
committed
RED-24102 update scc and operator to use user id 1001
1 parent 3e11deb commit cdba384

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

operator.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ spec:
1212
labels:
1313
name: redis-enterprise-operator
1414
spec:
15+
securityContext:
16+
runAsUser: 1001
17+
fsGroup: 1001
1518
serviceAccount: redis-enterprise-operator
1619
containers:
1720
- name: redis-enterprise-operator

scc.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ allowPrivilegedContainer: false
66
allowedCapabilities:
77
- SYS_RESOURCE
88
runAsUser:
9-
type: RunAsAny
9+
type: MustRunAs
10+
uid: 1001
11+
FSGroup:
12+
type: MustRunAs
13+
ranges: 1001,1001
1014
seLinuxContext:
1115
type: RunAsAny

0 commit comments

Comments
 (0)