From 8280f038247b967396e02eca2d92e3522801bfef Mon Sep 17 00:00:00 2001 From: Arjun Kondur Date: Fri, 23 Aug 2024 12:15:54 -0500 Subject: [PATCH] Add PDB documentation --- docs/Examples.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/docs/Examples.md b/docs/Examples.md index d395d1efc..e2b51e5c9 100644 --- a/docs/Examples.md +++ b/docs/Examples.md @@ -212,6 +212,48 @@ NAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS idc-example IndexerCluster/example 16%/50% 5 10 5 15m ``` +#### Specifying pod disruption budgets(PDB) for Splunk Enterprise Deployments +You can also create [Pod Disruption Budgets](https://kubernetes.io/docs/concepts/workloads/pods/disruptions/#pod-disruption-budgets) to help you run highly available applications even during disruptions. For example we can target a PDB at a standalone which ensures atleast three standalone pods are present inspite of [disruptions](https://kubernetes.io/docs/concepts/workloads/pods/disruptions/): + +```yaml +cat < +``` +**Note**: We are targeting the standalone using the labels uniquely created by Splunk Operator for the Standalone CR instance. A similar +procedure can be used for other Splunk Enterprise CRs. + #### Create a search head for your index cluster To create a standalone search head that is preconfigured to search your indexer cluster, add the `clusterManagerRef` parameter: