Coder Social home page Coder Social logo

Comments (1)

groulot avatar groulot commented on July 23, 2024

Hello,

we used a manifest to do it, we use openshift and it's located at "./origin/node/openshift.local.manifests/logging.yaml" but with Kubernetes it's in /etc/kubernetes/manifests (this page explains how to do it : http://logz.io/blog/kubernetes-log-analysis/ )

Here's our file:
apiVersion: v1
kind: Pod
metadata:
name: fluentd-graylog
spec:
containers:

  • name: fluentd-graylog
    image: groulot/docker-fluentd-kubernetes-gelf
    securityContext:
    privileged: true
    resources:
    limits:
    cpu: 100m
    volumeMounts:
    • name: varlog
      mountPath: /var/log
    • name: varlibdockercontainers
      mountPath: /var/lib/docker/containers
      readOnly: true
      env:
    • name: "GELF_HOST"
      value: "192.168.1.100"
    • name: "GELF_PORT"
      value: "1515"
      volumes:
  • name: varlog
    hostPath:
    path: /var/log
  • name: varlibdockercontainers
    hostPath:
    path: /var/lib/docker/containers

I hope that helps, there's probably better ways to run this now but we didn't look into them as this fits our needs.

from docker-fluentd-kubernetes-gelf.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.