# On demand backup using Xtrabackup not working - Kubernetes Toleration problems

**URL:** <https://forums.percona.com/t/on-demand-backup-using-xtrabackup-not-working-kubernetes-toleration-problems/14534>\
**Category:** Percona Operator for MySQL\
**Created:** [February 22, 2022, 8:58pm UTC](https://forums.percona.com/t/on-demand-backup-using-xtrabackup-not-working-kubernetes-toleration-problems/14534 "2022-02-22T20:58:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matias\_Insaurralde](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matias_insaurralde/32/5937_2.png) [@Matias\_Insaurralde](https://forums.percona.com/u/Matias_Insaurralde)\
**Post date:** [February 22, 2022, 8:58pm UTC](https://forums.percona.com/t/on-demand-backup-using-xtrabackup-not-working-kubernetes-toleration-problems/14534/1 "2022-02-22T20:58:23Z")

</div>

I want to run a backup on demand using xtrabackup, following the percona documentation, I created this chart, but it has the problem that no matter what tolerations I put I put in, it doesn’t put anything in the pod, and therefore it can’t be scheduled.

```auto
> apiVersion: pxc.percona.com/v1
> kind: PerconaXtraDBClusterBackup
> metadata:
> finalizers:
> - delete-pxc-pods-in-order
> name: prueba-xtradb
> spec:
> pxcCluster: {{ .Release.Name }}
> storageName: xtrabackup-test    
> nodeSelector:
> infra: staging
> tolerations:
> - key: "env"
> operator: "equal"
> effect: "NoSchedule"
> value: "staging"
> tolerationSeconds: 6000

```

I also tried with

```auto
> tolerations:
> - effect: NoSchedule
> key: env
> operator: Equal
> value: staging

```

But it still doesn´t work, the pod cannot schedule because there are taints that the pod didn’t tolerate.

---

<div class="post-metadata">

**Author:** ![Sergey\_Pronin](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sergey_pronin/32/14887_2.png) [@Sergey\_Pronin](https://forums.percona.com/u/Sergey_Pronin)\
**Post date:** [March 14, 2022, 8:47am UTC](https://forums.percona.com/t/on-demand-backup-using-xtrabackup-not-working-kubernetes-toleration-problems/14534/2 "2022-03-14T08:47:01Z")

</div>

Hello @Matias_Insaurralde ,

you can set tolerations through cr.yaml when configuring the storage.  
In your case it should be like:

```auto
spec:
  ...
  backup:
    storages:
      xtrabackup-test:
        ...
        tolerations:
        - key: "env"
          operator: "equal"
          effect: "NoSchedule"
          value: "staging"
          tolerationSeconds: 6000

```

Please let me know if it helps.
