Skip to content

Instantly share code, notes, and snippets.

@gosuri
Created November 11, 2015 22:57
Show Gist options
  • Save gosuri/776a1e7ddd26167e337d to your computer and use it in GitHub Desktop.
Save gosuri/776a1e7ddd26167e337d to your computer and use it in GitHub Desktop.
- path: /etc/kubernetes/manifests/fluentd.yaml
owner: root
permissions: 0644
content: |
apiVersion: v1
kind: Pod
metadata:
name: fluentd-elasticsearch
namespace: sys
spec:
containers:
- name: fluentd-elasticsearch
image: ovrclk/fluentd-elasticsearch:1.8
resources:
limits:
cpu: 100m
env:
- name: "FLUENTD_ARGS"
value: "-qq"
volumeMounts:
- name: varlog
mountPath: /varlog
- name: containers
mountPath: /var/lib/docker/containers
volumes:
- name: varlog
hostPath:
path: /var/log
- name: containers
hostPath:
path: /var/lib/docker/containers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment