splunk / splunk-operator

Splunk Operator for Kubernetes
Other
209 stars 115 forks source link

Splunk Operator: Does not allow setting specific AWS IMDS version #1140

Closed w00jay closed 1 year ago

w00jay commented 1 year ago

Please select the type of request

Enhancement

Tell us more

Describe the request

Expected behavior

Splunk setup on K8S

Reproduction/Testing steps

./splunk btool server list imds --debug
/opt/splunk/etc/system/default/server.conf [imds]
/opt/splunk/etc/system/default/server.conf imds_version = v1

K8s environment

markusspitzli commented 1 year ago

Hey @w00jay

Actually you can set the parameter in docker-splunk by using default.yml.

You just have to define a default.yml config map and use the defaultUrlparameter

Your configmap could look like this:

apiVersion: v1
kind: ConfigMap
metadata:
  name: splunk-defaults
data:
  default.yml: |
    splunk:
      conf: 
        - key: server
          value:
            directory: /opt/splunk/etc/system/local
            content:
              "imds":
                imds_version: v2

An additional thing I want to point out. You should upgrade the splunk operator to the latest version. It has a lot of bugfixes. I really enjoy using the helmcharts. But you will have to upgrade the Splunk Enterprise as well.

w00jay commented 1 year ago

@markusspitzli thank you for the quick solution!