From 9df50848e5d28bb8c588724085a5f1cc3ba2e5b0 Mon Sep 17 00:00:00 2001 From: Enrico Deusebio Date: Thu, 1 Feb 2024 00:58:30 +0100 Subject: [PATCH] add k8s manifests --- tests/integration/resources/jupyter.yaml | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 tests/integration/resources/jupyter.yaml diff --git a/tests/integration/resources/jupyter.yaml b/tests/integration/resources/jupyter.yaml new file mode 100644 index 00000000..44785433 --- /dev/null +++ b/tests/integration/resources/jupyter.yaml @@ -0,0 +1,34 @@ +apiVersion: v1 +kind: Pod +metadata: + name: charmed-spark-jupyter + labels: + app.kubernetes.io/name: charmed-spark-jupyter +spec: + serviceAccountName: "" + containers: + - 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", "", "--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 \ No newline at end of file