How to install only Fluentd on Openshift 3.11

12/2/2019

Openshift allowed to install EFK but i want to install only Fluentd which will collect logs and send to external log aggregator.

I tried following

Edit inventory file and add below entries

openshift_logging_install_logging=true
openshift_logging_fluentd_nodeselector={"node-role.kubernetes.io/infra":"true"}

Then run below playbook

ansible-playbook -i inventory.ini playbooks/openshift-logging/config.yml

But its throwing following error

TASK [assert] ***************************************************************************************************
fatal: [xdww002050.ycube.local]: FAILED! => {
    "assertion": "openshift_logging_es_nodeselector is defined",
    "changed": false,
    "evaluated_to": false,
    "msg": "A node selector is required for Elasticsearch pods, please specify one with openshift_logging_es_nodeselector"
}

I dont want to install ElasticSearch or Kibana, is there any way to restrict installation to install Fluentd only?

-- ImranRazaKhan
kubernetes
openshift
openshift-origin

0 Answers