Skip to content

Commit

Permalink
add k8s manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
deusebio committed Jan 31, 2024
1 parent c417c76 commit 9df5084
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions tests/integration/resources/jupyter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: v1
kind: Pod
metadata:
name: charmed-spark-jupyter
labels:
app.kubernetes.io/name: charmed-spark-jupyter
spec:
serviceAccountName: "<SERVICE_ACCOUNT>"
containers:
- image: <IMAGE>
name: spark
# IT WOULD BE NICE IF THESE PARAMETERS COULD BE AUTO-INFERRED FROM THE
# SERVICE ACCOUNT USED TO RUN THE JOB
# (JIRA TICKET https://warthogs.atlassian.net/browse/DPE-3460)
args: ["--username", "<SERVICE_ACCOUNT>", "--namespace", "<NAMESPACE>"]
ports:
- containerPort: 8888
env:
- name: NB_PREFIX
value: "jupyter-test"
---
apiVersion: v1
kind: Service
metadata:
name: jupyter-service
labels:
app: charmed-spark-jupyter
spec:
ports:
- port: 8888
protocol: TCP
targetPort: 8888
selector:
app.kubernetes.io/name: charmed-spark-jupyter

0 comments on commit 9df5084

Please sign in to comment.