Skip to content

Commit 2d9de68

Browse files
authored
Merge pull request #1581 from splunk/CSPL-4008/docs-update-with-shc-deployer-resources
CSPL-4008 Add deployerResourceSpec to docs
2 parents f72e37d + 968cc74 commit 2d9de68

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

docs/CustomResources.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,62 @@ the `SearchHeadCluster` resource provides the following `Spec` configuration par
215215
| -------- | ------- | ------------------------------------------------------------ |
216216
| replicas | integer | The number of search heads cluster members (minimum of 3, which is the default) |
217217

218+
### Search Head Deployer Resource
219+
220+
Since Search Head Deployer doesn't require as many resources as Search Head Peers themselves, then Splunk Operator for Kubernetes 2.7.1 introduced additional field for SearchHeadCluster spec to manage resources for the deployer separately.
221+
222+
If provided, resources are managed separately for Search Head Deployer and Search Head Peers. Otherwise, either default values are used if resources are not defined at all or Search Head Peers resources are applied to Search Head Deployer as well.
223+
224+
Additionally, node affinity specification was introduced for Search Head Deployer to separate it from Search Head Peers specification.
225+
226+
| Key | Type | Description |
227+
| -------- | ------- | ------------------------------------------------------------ |
228+
| deployerNodeAffinity | *corev1.NodeAffinity | Search Head Deployer node affinity |
229+
| deployerResourceSpec | corev1.ResourceRequirements | Search Head Deployer resource specification |
230+
231+
#### Example
232+
233+
```
234+
deployerNodeAffinity:
235+
preferredDuringSchedulingIgnoredDuringExecution:
236+
...
237+
requiredDuringSchedulingIgnoredDuringExecution:
238+
...
239+
deployerResourceSpec:
240+
claims:
241+
...
242+
limits:
243+
...
244+
requests:
245+
...
246+
```
247+
248+
```
249+
apiVersion: enterprise.splunk.com/v4
250+
kind: SearchHeadCluster
251+
metadata:
252+
name: shc
253+
finalizers:
254+
- enterprise.splunk.com/delete-pvc
255+
spec:
256+
image: splunk/splunk: 9.4.4
257+
serviceAccount: splunk-service-account
258+
resources:
259+
requests:
260+
memory: "1024Mi"
261+
cpu: "0.2"
262+
limits:
263+
memory: "10Gi"
264+
cpu: "6"
265+
deployerResourceSpec:
266+
requests:
267+
memory: "512Mi"
268+
cpu: "0.1"
269+
limits:
270+
memory: "8Gi"
271+
cpu: "4"
272+
```
273+
218274
## ClusterManager Resource Spec Parameters
219275
ClusterManager resource does not have a required spec parameter, but to configure SmartStore, you can specify indexes and volume configuration as below -
220276
```yaml

0 commit comments

Comments
 (0)