<p>I am exploring <a href="https://github.com/argoproj/argo-workflows" rel="nofollow noreferrer">argo workflows</a> for my <code>spark</code> usecase. Are there any example <code>YAML</code> which shows how to execute a <code>spark job</code> on <code>k8s</code> using <strong>Argo workflow</strong></p>

devnull
<pre><code>apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: hello-spark-
spec:
  entrypoint: sparkapp
  templates:
  - name: sparkapp
  container:
    image: sparkimage
    command: [sh]
    args: [
      &quot;-c&quot;,
      &quot;sh /opt/spark/bin/spark-submit.sh  \&quot;--class\&quot; \&quot;org.apache.spark.examples.SparkPi\&quot; \&quot;/opt/spark/examples/jars/spark-examples_2.11-2.4.0.jar\&quot; &quot;
    ]
</code></pre>
