File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
stacks/jupyterhub-keycloak Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,13 @@ options:
64
64
for container in pod.spec.containers:
65
65
container.security_context = None
66
66
67
- # JupyterHub does add weird stuff that requires NET_ADMIN capability, which we don't need
68
- pod.spec.init_containers = []
67
+ # JupyterHub adds NET_ADMIN settings, which we don't need
68
+ #retain_init_containers = []
69
+ #for init_container in pod.spec.init_containers:
70
+ # # retain just the download init container defined below
71
+ # if init_container.name == "download-notebook":
72
+ # init_container.security_context = None
73
+ # retain_init_containers.append(init_container)
69
74
70
75
return pod
71
76
Original file line number Diff line number Diff line change 46
46
" \n " ,
47
47
" spark = (\n " ,
48
48
" SparkSession.builder\n " ,
49
- " .master(f' k8s://https://{os.environ[\" KUBERNETES_SERVICE_HOST\" ]}:{os.environ[\" KUBERNETES_SERVICE_PORT\" ]}' )\n " ,
50
- " .appName(\" process-s3-data- \" {os.environ.get('USER', 'default')}-{NAMESPACE} )\n " ,
49
+ " .master(f\" k8s://https://{os.environ[' KUBERNETES_SERVICE_HOST' ]}:{os.environ[' KUBERNETES_SERVICE_PORT']} \" )\n " ,
50
+ " .appName(f \" process-s3-{POD_NAME} \" )\n " ,
51
51
" .config(\" spark.kubernetes.container.image\" , EXECUTOR_IMAGE)\n " ,
52
52
" .config(\" spark.kubernetes.container.image.pullPolicy\" , \" IfNotPresent\" )\n " ,
53
53
" .config(\" spark.kubernetes.namespace\" , NAMESPACE)\n " ,
You can’t perform that action at this time.
0 commit comments