Skip to content

Instantly share code, notes, and snippets.

@vamsijakkula
Created June 21, 2020 08:47
Show Gist options
  • Save vamsijakkula/fc47b63c177431904603de16c14ecbc8 to your computer and use it in GitHub Desktop.
Save vamsijakkula/fc47b63c177431904603de16c14ecbc8 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: fluent-bit
labels:
app: fluent-bit
spec:
selector:
matchLabels:
app: fluent-bit
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
template:
metadata:
labels:
app: fluent-bit
spec:
containers:
- name: fluentd
image: fluent/fluent-bit:1.4.6
volumeMounts:
- name: varlog
mountPath: /var/log
- name: varlibdockercontainers
mountPath: /var/lib/docker/containers
readOnly: true
terminationGracePeriodSeconds: 30
volumes:
- name: varlog
hostPath:
path: /var/log
- name: varlibdockercontainers
hostPath:
path: /var/lib/docker/containers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment