-
Notifications
You must be signed in to change notification settings - Fork 0
/
jupyter.values.yaml
50 lines (49 loc) · 1.77 KB
/
jupyter.values.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# hub:
# extraConfig:
# kubespawner:
# auth_state_hook: "kubespawner.auth.KubeAuthStateHook"
# service_account: "jupyter-notebook-sa"
# service_account_secret: "<SECRET_NAME>"
singleuser:
cpu:
limit: 1
guarantee: 0.5
memory:
limit: 2G
guarantee: 1G
defaultUrl: "/lab"
serviceAccountName: jupyter-notebook-sa
image:
# name: jupyter/all-spark-notebook
# tag: spark-3.1.1
name: jupyter/pyspark-notebook
# tag: latest
tag: spark-3.2.1
pullPolicy: IfNotPresent
extraEnv:
EDITOR: "vim"
SPARK_MASTER: "k8s://https://172.20.0.2:6443"
SPARK_SUBMIT_DEPLOY_MODE: "client"
SPARK_EXECUTOR_INSTANCES: "2"
SPARK_KUBERNETES_CONTAINER_IMAGE: "datamechanics/spark:3.2-latest"
SPARK_KUBERNETES_AUTHENTICATE_DRIVER_SERVICEACCOUNTNAME: "jupyter-notebook-sa"
SPARK_KUBERNETES_AUTHENTICATE_SERVICEACCOUNTNAME: "jupyter-notebook-sa"
SPARK_KUBERNETES_NAMESPACE: "default"
SPARK_DRIVER_PORT: "2222"
SPARK_DRIVER_BLOCKMANAGER_PORT: "7777"
SPARK_DRIVER_HOST: "driver-service.default.svc.cluster.local"
SPARK_DRIVER_BINDADDRESS: "0.0.0.0"
PYSPARK_SUBMIT_ARGS: |
--master k8s://https://172.20.0.2:6443
--deploy-mode client
--conf spark.executor.instances=1
--conf spark.kubernetes.container.image=datamechanics/spark:3.2-latest
--conf spark.kubernetes.authenticate.driver.serviceAccountName=jupyter-notebook-sa
--conf spark.kubernetes.authenticate.serviceAccountName=jupyter-notebook-sa
--conf spark.kubernetes.namespace=default
--conf spark.driver.port=2222
--conf spark.driver.blockManager.port=7777
--conf spark.driver.host=driver-service.default.svc.cluster.local
--conf spark.driver.bindAddress=0.0.0.0
pyspark-shell
cmd: null