> For the complete documentation index, see [llms.txt](https://docs.collibra.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.collibra.com/data-quality-self-hosted/installation/installing-data-quality-observability-self-hosted-on-self-hosted-kubernetes/deploy-on-self-hosted-kubernetes/configure-spark-pod-templates.md). Agents can also search and read this documentation through its [MCP server](https://docs.collibra.com/~gitbook/mcp).

# Configure Spark pod templates

You can customize the Kubernetes pod template that Spark driver and executor pods use when the DQ Agent launches them. For example, you can mount a Secret, set resource limits, or add node selectors. Refer to the [executor launch template](https://spark.apache.org/docs/latest/running-on-kubernetes.html#pod-template) and for more information.&#x20;

## Prerequisites

Before you configure Spark pod templates, ensure you have:

* A Collibra DQ deployment on Kubernetes that you manage with the provided Helm chart.
* A valid Kubernetes Pod spec in YAML.
* Permission to edit the `values.yaml` file and to edit agents in the Admin Console.

{% hint style="info" %}
This capability is only available for Collibra DQ versions 2026.10 or newer.
{% endhint %}

## Steps

{% stepper %}
{% step %}
Open your `values.yaml` file.
{% endstep %}

{% step %}
Under `global.configMap.data`, set `sparkPodTemplate` to your Pod spec. Replace the example with your own Pod spec.

```
global:
     configMap:
       data:
         sparkPodTemplate: |
           apiVersion: v1
           kind: Pod
           spec:
             containers:
               - name: spark-kubernetes-driver
```

{% endstep %}

{% step %}
Run a Helm upgrade to apply the changes.\ <i class="fa-chevrons-right">:chevrons-right:</i> The DQ Agent container mounts the value as `k8s-driver-template.yml` and `k8s-executor-template.yml` in `/opt/owl/config`.
{% endstep %}

{% step %}
Restart the DQ Agent pod.
{% endstep %}

{% step %}
Sign in to Collibra DQ.
{% endstep %}

{% step %}
Hover your cursor over the **Settings** icon and click **Admin Console**.\ <i class="fa-chevrons-right">:chevrons-right:</i> The Admin Console opens.
{% endstep %}

{% step %}
Click **Agent Configuration**.\ <i class="fa-chevrons-right">:chevrons-right:</i> The Agent Configuration page opens.
{% endstep %}

{% step %}
In the Actions column, click the **Edit** icon.\ <i class="fa-chevrons-right">:chevrons-right:</i> The Edit Agent modal opens.
{% endstep %}

{% step %}
In the **Free Form (Appended)** field, enter the following string:

```
-conf spark.kubernetes.driver.podTemplateFile=local:///opt/owl/config/k8s-driver-template.yml,spark.kubernetes.executor.podTemplateFile=local:///opt/owl/config/k8s-executor-template.yml
```

{% hint style="info" %}
If the field already contains configuration properties, separate each property with a comma.
{% endhint %}
{% endstep %}

{% step %}
Click **Save**.
{% endstep %}
{% endstepper %}

### What's next

[Run a DQ job](https://docs.collibra.com/data-quality-self-hosted/core-concepts/explorer/create-a-dq-job/run-your-dq-job.md) and confirm that the Spark driver and executor pods start with your template settings.
