Comments (1)
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
- 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)
- Publish to Docker Hub HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-fluentd-kubernetes-gelf.