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 19, 2024
1 parent 74c092c commit eec4c06
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/bigdata-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: bigdata-operator
description: Spot Ocean BigData Operator
type: application
version: 0.4.6
version: 0.4.7
appVersion: 0.4.5
home: https://github.com/spotinst/charts
icon: https://docs.spot.io/_media/images/spot_mark.png
Expand Down
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
2 changes: 1 addition & 1 deletion charts/bigdata-proxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: bigdata-proxy
description: A Helm chart for the Spot Big Data Proxy
type: application
version: 0.4.4
version: 0.4.5
appVersion: 0.5.3
home: https://github.com/spotinst/charts
icon: https://docs.spot.io/_media/images/spot_mark.png
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
2 changes: 1 addition & 1 deletion charts/bigdata-spark-watcher/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: bigdata-spark-watcher
description: A Helm chart for the Spot Big Data Spark Watcher
type: application
version: 0.5.1
version: 0.5.2
appVersion: 0.4.5
home: https://github.com/spotinst/charts
icon: https://docs.spot.io/_media/images/spot_mark.png
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: 1 addition & 1 deletion charts/spark-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: Spark Operator (b/g part)
name: spark-operator
version: 0.1.23
version: 0.1.24
appVersion: v1beta2-1.3.4-3.1.1
dependencies:
- name: spark-operator
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 eec4c06

Please sign in to comment.