splunk / splunk-ansible

Ansible playbooks for configuring and managing Splunk Enterprise and Universal Forwarder deployments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Container image: Support for other runtimes than Docker

dadux opened this issue · comments

Hi all,

I'd love to migrate our Splunk cluster to Kubernetes, and was playing with the splunk-operator.

When the container starts, it fails with the following error :

ERROR! Specified hosts and/or --limit does not match any hosts

I believe this is due to a missing .dockerenv file :

if os.path.isfile("/.dockerenv"):

which treats container differently with localhost.

The .dockerenv is mounted for each containers by the docker daemon only, but in our case we are running containerd and it does not mount it. I believe users running CRI-O in their clusters will run into the same issue.

How can we not rely on this file ? Adding an environment variable ?

👍 let me take a look

I kicked off another build for the edge tag, could you try that and see if it works? The image is splunk/splunk:edge

Confirmed ! latest splunk/splunk:edge fixes the problem.

Thanks for a very speedy resolution !