Skip to content

Commit

Permalink
[BGD-4448] run DP components as as non root
Browse files Browse the repository at this point in the history
  • Loading branch information
ImpSy committed Jan 17, 2024
1 parent d99dd81 commit dc8bbfa
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion charts/bigdata-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ podLabels:
podSecurityContext: {}
# fsGroup: 2000

securityContext: {}
securityContext:
runAsNonRoot: true
# capabilities:
# drop:
# - ALL
Expand Down
3 changes: 2 additions & 1 deletion charts/bigdata-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ podLabels:
podSecurityContext: {}
# fsGroup: 2000

securityContext: {}
securityContext:
runAsNonRoot: true
# capabilities:
# drop:
# - ALL
Expand Down
3 changes: 2 additions & 1 deletion charts/bigdata-spark-watcher/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ podLabels:
podSecurityContext: {}
# fsGroup: 2000

securityContext: {}
securityContext:
runAsNonRoot: true
# capabilities:
# drop:
# - ALL
Expand Down
2 changes: 1 addition & 1 deletion charts/bigdata-telemetry/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: bigdata-telemetry
description: A Helm chart for the Spot Big Data Telemetry components
type: application
version: 0.2.0
version: 0.2.1
appVersion: "1.16.0"
home: https://github.com/spotinst/charts
icon: https://docs.spot.io/_media/images/spot_mark.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ spec:
port: 10902
scheme: HTTP
periodSeconds: 5
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
- mountPath: /var/thanos/receive
Expand Down
2 changes: 2 additions & 0 deletions charts/bigdata-telemetry/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ thanos:

nodeSelector: {}

securityContext: {}

affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
Expand Down
2 changes: 2 additions & 0 deletions charts/spark-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ spark-operator: # This section controls the behavior of the spark operator sub-

disableExecutorReporting: false

securityContext: {}

webhook:
enable: true
# If hostNetwork is set to true it is probably a good idea to change this (e.g. 25554)
Expand Down

0 comments on commit dc8bbfa

Please sign in to comment.