36 lines
836 B
YAML
36 lines
836 B
YAML
apiVersion: apps/v1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: fluent-bit
|
|
namespace: kiamol-ch13-lab-logging
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: fluent-bit
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: fluent-bit
|
|
spec:
|
|
containers:
|
|
- name: fluent-bit
|
|
image: fluent/fluent-bit:1.4.6
|
|
volumeMounts:
|
|
- name: fluent-bit-config
|
|
mountPath: /fluent-bit/etc/
|
|
- name: varlog
|
|
mountPath: /var/log
|
|
- name: varlibdockercontainers
|
|
mountPath: /var/lib/docker/containers
|
|
readOnly: true
|
|
volumes:
|
|
- name: fluent-bit-config
|
|
configMap:
|
|
name: fluent-bit-config
|
|
- name: varlog
|
|
hostPath:
|
|
path: /var/log
|
|
- name: varlibdockercontainers
|
|
hostPath:
|
|
path: /var/lib/docker/containers
|