# Pod disruption budget

[edit](https://github.com/elastic/cloud-on-k8s/edit/2.16/docs/orchestrating-elastic-stack-applications/elasticsearch/pod-disruption-budget.asciidoc "Edit this page on GitHub")

**IMPORTANT**: This documentation is no longer updated. Refer to [Elastic's version policy](/content/support/eol/index.html) and the [latest documentation](/content/docs/deploy-manage/deploy/cloud-on-k8s/pod-disruption-budget/index.html).

## Pod disruption budget

A [Pod Disruption Budget](https://kubernetes.io/docs/tasks/run-application/configure-pdb/) (PDB) allows you to limit the disruption to your application when its pods need to be rescheduled for some reason such as upgrades or routine maintenance work on the Kubernetes nodes.

ECK manages a default PDB per Elasticsearch resource. It allows one Elasticsearch Pod to be taken down, as long as the cluster has a `green` health. Single-node clusters are not considered highly available and can always be disrupted.

In the Elasticsearch specification, you can change the default behaviour as follows:

```yaml
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
  name: quickstart
spec:
  version: 8.19.18
  nodeSets:
  - name: default
    count: 3
  podDisruptionBudget:
    spec:
      minAvailable: 2
      selector:
        matchLabels:
          elasticsearch.k8s.elastic.co/cluster-name: quickstart
```

[`maxUnavailable`](https://kubernetes.io/docs/tasks/run-application/configure-pdb/#arbitrary-controllers-and-selectors) cannot be used with an arbitrary label selector, therefore `minAvailable` is used in this example.

You can also explicitly disable the default PDB:

```yaml
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
  name: quickstart
spec:
  version: 8.19.18
  nodeSets:
  - name: default
    count: 3
  podDisruptionBudget: {}
```

[« Update strategy](/content/guide/en/cloud-on-k8s/2.16/k8s-update-strategy.html)[Nodes orchestration »](/content/guide/en/cloud-on-k8s/2.16/k8s-orchestration.html)

Most Popular

Video

[Get Started with Elasticsearch](/content/webinars/getting-started-elasticsearch?page=docs&placement=top-video/index.html)

Video

[Intro to Kibana](/content/webinars/getting-started-kibana?page=docs&placement=top-video/index.html)

Video

[ELK for Logs & Metrics](/content/webinars/introduction-elk-stack?page=docs&placement=top-video/index.html)

Was this helpful?Feedback

LikeDislike

Thank you for your feedback.

a18132920325.cdn.optimizely.com

# a18132920325.cdn.optimizely.com is blocked

This page has been blocked by an extension

- Try disabling your extensions.

ERR\_BLOCKED\_BY\_CLIENT

Reload

This page has been blocked by an extension
