Skip to content

Commit

Permalink
Update sparkapplication_example.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Julius von Kohout <[email protected]>
  • Loading branch information
juliusvonkohout authored Jan 22, 2025
1 parent e36ee3c commit 4eab001
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions contrib/spark/sparkapplication_example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,29 @@ spec:
serviceAccount: default-editor
annotations:
"sidecar.istio.io/inject": "false"
securityContext:
capabilities:
drop:
- ALL
runAsUser: 185 # Non-root user
runAsGroup: 0 # Root group (as per your requirement)
runAsNonRoot: true
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
executor:
instances: 1
cores: 1
memory: 512m
annotations:
"sidecar.istio.io/inject": "false"
securityContext:
capabilities:
drop:
- ALL
runAsUser: 185 # Non-root user (Consistent with driver)
runAsGroup: 0 # Root group (Consistent with driver)
runAsNonRoot: true
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault

0 comments on commit 4eab001

Please sign in to comment.