Connect Splunk Operator resources to an external indexer cluster.
Configure Splunk Operator Standalone, SearchHeadCluster, and LicenseManager resources to use an external indexer cluster by sharing IDXC pass4Symmkey and configuring the cluster manager URL. Share the same indexer clustering pass4Symmkey between the global secret object and the external cluster manager and indexers, and configure splunk.cluster_master_url.
Note:
This procedure requires Splunk Enterprise container version 8.1.0 or higher.
- Configure IDXC pass4Symmkey (approach 1): set matching values in the global secret and on the cluster manager and indexers.
- Set up the desired plain-text IDXC pass4Symmkey in the global secret object (stored base64 encoded).
- Set up the same plain-text value in the
[clustering] section of server.conf on the cluster manager and on the indexers.
- Configure IDXC pass4Symmkey (approach 2): copy the value from the cluster manager or indexers into the global secret.
Retrieve the plain-text value from the [clustering] stanza of server.conf. If the value is encrypted, decrypt it with:
$SPLUNK_HOME/bin/splunk show-decrypted --value '...'
Set up the decrypted value in the global secret object.
- Configure cluster_master_url through default.yml and a Kubernetes secret.
Create default.yml with the cluster manager host or URL:
splunk:
cluster_master_url: cluster-manager.splunk.mydomain.com
Save the file as a secret:
kubectl create secret generic splunk-cluster-manager --from-file=default.yml
Reference the secret and set defaultsUrl on the SearchHeadCluster resource:
apiVersion: enterprise.splunk.com/v4
kind: SearchHeadCluster
metadata:
name: example
namespace: splunk-operator
finalizers:
- enterprise.splunk.com/delete-pvc
spec:
volumes:
- name: cluster-manager
secret:
secretName: splunk-cluster-manager
defaultsUrl: /mnt/cluster-manager/default.yml