Skip to content

Splunk Operator: deployerNodeAffinity and deployerResourceSpec not exposed in helm chart #1661

@gblues

Description

@gblues

Please select the type of request

Bug

Tell us more

Describe the request
Since release 1.27, the SOK has provided two properties on the SearchHeadCluster custom resource to control affinity and resource consumption of the Deployer:

  • deployerNodeAffinity
  • deployerResourceSpec

However, neither of these are exposed in the Helm chart, which means they cannot be used in a Helm-based deployment without customizing the template.

Expected behavior
Given the following values.yaml

---
# values.yaml
searchHeadCluster:
  # ...
  deployerNodeAffinity:
    requiredDuringSchedulingIgnoredDuringExecution:
      nodeSelectorTerms:
      - matchExpressions:
        - key: app.kubernetes.io/part-of
          operator: In
          values:
          - splunk
        - key: splunk.io/instance-type
          operator: In
          values:
          - shcd
  deployerResourceSpec:
    requests:
      cpu: "256m"
      memory: "4Gi"
    limits:
      cpu: "1000m"
      memory: "8Gi"

the properties above should be rendered into the SearchHeadCluster yaml:

---
# templated chart ouptut
apiVersion: enterprise.splunk.com/v4
kind: SearchHeadCluster
metadata:
  name: sh
  namespace: splunk
spec:
# ...
  deployerNodeAffinity:
    requiredDuringSchedulingIgnoredDuringExecution:
      nodeSelectorTerms:
      - matchExpressions:
        - key: app.kubernetes.io/part-of
          operator: In
          values:
          - splunk
        - key: splunk.io/instance-type
          operator: In
          values:
          - shcd
  deployerResourceSpec:
    limits:
      cpu: 1000m
      memory: 8Gi
    requests:
      cpu: 256m
      memory: 4Gi

Splunk setup on K8S

  • we are deploying Splunk on EKS using the splunk-enterprise chart version 3.0.0

Reproduction/Testing steps

  • rough example given in description above

K8s environment

  • not relevant

Proposed changes(optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions