Skip to content

Commit

Permalink
Run workspace as non root (#240)
Browse files Browse the repository at this point in the history
* jovyan user has userid 1000
* update chart version
  • Loading branch information
sigmarkarl authored Nov 6, 2024
1 parent 5f98acb commit c959006
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/bigdata-notebook-workspace/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: bigdata-notebook-workspace
description: A Helm chart for the Spot Big Data Notebook Workspace
type: application
version: 0.0.16
version: 0.0.17
appVersion: 4.1.8-ofas-31799c9
home: https://github.com/spotinst/charts
icon: https://docs.spot.io/_media/images/spot_mark.png
Expand Down
3 changes: 1 addition & 2 deletions charts/bigdata-notebook-workspace/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ spec:
- containerPort: {{ .Values.containerPort.port }}
name: {{ .Values.containerPort.name }}
command:
- start-notebook.sh
- --allow-root
- start-notebook.py
args:
{{- range $key, $value := .Values.server }}
- --ServerApp.{{ $key | snakecase }}={{$value}}
Expand Down
5 changes: 3 additions & 2 deletions charts/bigdata-notebook-workspace/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ volume:
mountPath: /home/jovyan

podSecurityContext:
runAsUser: 0
fsGroup: 0
runAsNonRoot: true
runAsUser: 1000
fsGroup: 100

containerPort:
port: 8888
Expand Down

0 comments on commit c959006

Please sign in to comment.