Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/armada.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Aramda

on:
pull_request:

jobs:
armada:
name: Armada integration
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: spark-armada
- uses: actions/checkout@v4
with:
repository: armadaproject/armada-operator
path: armada-operator
- run: |
cd spark-armada
./build/sbt package -Parmada -Pkubernetes
./bin/docker-image-tool.sh -t testing build
docker image save -o ../spark_testing.tar spark:testing
cd ..

cd armada-operator
make kind-all
./bin/tooling/kind load image-archive ../spark_testing.tar --name armada

# sleep a bit, or we see: create queue request failed: rpc error: code = DeadlineExceeded
sleep 60

./bin/app/armadactl create queue test

# sleep a bit, or we see: rpc error: code = PermissionDenied desc = could not find queue "test"
sleep 60

./bin/app/armadactl submit ../spark-armada/examples/spark-driver-job.yaml
./bin/app/armadactl submit ../spark-armada/examples/spark-executor-job.yaml

# wait for the jobs to start
sleep 60

# inspect jobs
kubectl get pods
for pod in $(kubectl get pods | grep armada | cut -d " " -f 1)
do
echo "$pod"
kubectl logs pod/$pod
echo
done

31 changes: 31 additions & 0 deletions examples/spark-driver-job.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
queue: test
jobSetId: job-set-1
jobs:
- namespace: default
priority: 0
podSpec:
terminationGracePeriodSeconds: 0
restartPolicy: Never
containers:
- name: spark-driver
image: spark:testing
env:
- name: SPARK_DRIVER_BIND_ADDRESS
value: "0.0.0.0:1234"
command:
- /opt/entrypoint.sh
args:
- driver
- --verbose
- --class
- org.apache.spark.examples.LocalPi
- --master
- armada://192.168.1.167:50051
- submit
resources:
limits:
memory: 1Gi
cpu: 1
requests:
memory: 1Gi
cpu: 1
Loading