Skip to content

Instantly share code, notes, and snippets.

@0sc
Last active July 18, 2019 04:10
Show Gist options
  • Save 0sc/0bab42fdba3704ae726f8b7d4701e36f to your computer and use it in GitHub Desktop.
Save 0sc/0bab42fdba3704ae726f8b7d4701e36f to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: fluentd
namespace: kube-system
labels:
app: fluentd-logging
version: v1
kubernetes.io/cluster-service: "true"
spec:
selector:
matchLabels:
name: fluentd-logging
version: v1
kubernetes.io/cluster-service: "true"
template:
metadata:
labels:
name: fluentd-logging
version: v1
kubernetes.io/cluster-service: "true"
spec:
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
containers:
- name: fluentd
image: fluent/fluentd-kubernetes-daemonset:v1.4-debian-forward-1
resources:
limits:
memory: 200Mi
requests:
cpu: 100m
memory: 200Mi
volumeMounts:
- name: varlog
mountPath: /var/log
- name: varlibdockercontainers
mountPath: /var/lib/docker/containers
readOnly: true
- name: config
mountPath: /fluentd/etc
terminationGracePeriodSeconds: 30
volumes:
- name: varlog
hostPath:
path: /var/log
- name: varlibdockercontainers
hostPath:
path: /var/lib/docker/containers
- name: config
configMap:
name: fluentd-logging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment