Public | Automated Build

Last pushed: 24 days ago
Short Description
Filebeat image that runs on Openshift.
Full Description

Elastic Filebeat Container for Openshift

Run this image in a non-openshift environment:

docker run -v filebeat.yml:/filebeat/config/filebeat.yml ninech/openshift-filebeat

Mount configuration file from secret

The path for the configuration file is /filebeat/config/filebeat.yml. It has it's own directory so you can put the file into an Openshift secret and mount it on /filebeat/config as a volume.

apiVersion: v1
kind: ConfigMap
metadata:
  name: filebeat-config
data:
  filebeat.yml: |
    filebeat.prospectors:
    - input_type: log
      paths:
        - /var/log/*.log
    output.console:
      pretty: true

Then link this config map into your pods:

apiVersion: v1
kind: Pod
metadata:
  name: filebeat
spec:
  containers:
    - name: filebeat
      image: ninech/openshift-filebeat
      volumeMounts:
          - name: filebeat-config-volume
            mountPath: /filebeat/config
            readOnly: true
  volumes:
    - name: filebeat-config-volume
      configMap:
        name: filebeat-config
Docker Pull Command
Owner
ninech
Source Repository

Comments (0)