-
-
Notifications
You must be signed in to change notification settings - Fork 6
feat: convert anomaly demo to spark-connect #209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
11d6467
19f4df4
8504cfa
094eb8f
596908e
4686bd5
ca0fd47
30394db
356f415
279c510
3cbcd84
bbfa92e
c7d2006
7a83653
ecc0ea1
9a63b63
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: jupyterlab | ||
labels: | ||
app: jupyterlab | ||
stackable.tech/vendor: Stackable | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: jupyterlab | ||
stackable.tech/vendor: Stackable | ||
template: | ||
metadata: | ||
labels: | ||
app: jupyterlab | ||
stackable.tech/vendor: Stackable | ||
spec: | ||
serviceAccountName: default | ||
containers: | ||
- name: jupyterlab | ||
image: oci.stackable.tech/stackable/spark-connect-client:3.5.5-stackable0.0.0-dev | ||
imagePullPolicy: IfNotPresent | ||
command: | ||
- bash | ||
args: | ||
- -c | ||
- /stackable/.local/bin/jupyter lab --ServerApp.token='{{ jupyterLabToken }}' --ServerApp.port=8080 --no-browser --notebook-dir /notebook | ||
env: | ||
- name: JUPYTER_PORT | ||
value: "8080" | ||
ports: | ||
- name: http | ||
containerPort: 8080 | ||
volumeMounts: | ||
- mountPath: /notebook | ||
name: notebook | ||
initContainers: | ||
- name: download-notebook | ||
image: oci.stackable.tech/sdp/spark-connect-client:3.5.5-stackable0.0.0-dev | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This might change depending on the outcome mentioned in the dependent PR: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, let's wait with merging this one |
||
command: ['sh', '-c', 'curl https://raw.githubusercontent.com/stackabletech/demos/main/stacks/jupyterhub-pyspark-hdfs/notebook.ipynb -o /notebook/notebook.ipynb'] | ||
volumeMounts: | ||
- mountPath: /notebook | ||
name: notebook | ||
volumes: | ||
- name: notebook | ||
emptyDir: | ||
sizeLimit: 500Mi | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: jupyterlab | ||
labels: | ||
app: jupyterlab | ||
stackable.tech/vendor: Stackable | ||
spec: | ||
type: NodePort | ||
selector: | ||
app: jupyterlab | ||
stackable.tech/vendor: Stackable | ||
ports: | ||
- name: http | ||
port: 8080 | ||
targetPort: 8080 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
optional: We could link to the Dockerfile (so that others can take the next steps for their use case).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done