Skip to content

Commit 9d431b5

Browse files
committed
user-specific job name
1 parent 0ff07da commit 9d431b5

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

stacks/jupyterhub-keycloak/jupyterhub.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,13 @@ options:
6464
for container in pod.spec.containers:
6565
container.security_context = None
6666
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)
6974
7075
return pod
7176

stacks/jupyterhub-keycloak/process-s3.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
"\n",
4747
"spark = (\n",
4848
" 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",
5151
" .config(\"spark.kubernetes.container.image\", EXECUTOR_IMAGE)\n",
5252
" .config(\"spark.kubernetes.container.image.pullPolicy\", \"IfNotPresent\")\n",
5353
" .config(\"spark.kubernetes.namespace\", NAMESPACE)\n",

0 commit comments

Comments
 (0)