mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-06 17:01:30 +00:00
56 lines
1.4 KiB
YAML
56 lines
1.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: fluentd
|
|
namespace: fluentd
|
|
labels:
|
|
k8s-app: fluentd-logging
|
|
version: v1
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
k8s-app: fluentd-logging
|
|
version: v1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
k8s-app: fluentd-logging
|
|
version: v1
|
|
spec:
|
|
tolerations:
|
|
- key: node-role.kubernetes.io/master
|
|
effect: NoSchedule
|
|
containers:
|
|
- name: fluentd
|
|
imagePullPolicy: "Always"
|
|
image: aimvector/fluentd-demo
|
|
env:
|
|
- name: FLUENT_ELASTICSEARCH_HOST
|
|
value: "elasticsearch.elastic-kibana"
|
|
- name: FLUENT_ELASTICSEARCH_PORT
|
|
value: "9200"
|
|
resources:
|
|
limits:
|
|
memory: 200Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 200Mi
|
|
volumeMounts:
|
|
- name: fluentd-config
|
|
mountPath: /fluentd/etc
|
|
- name: varlog
|
|
mountPath: /var/log
|
|
- name: varlibdockercontainers
|
|
mountPath: /var/lib/docker/containers
|
|
readOnly: true
|
|
terminationGracePeriodSeconds: 30
|
|
volumes:
|
|
- name: fluentd-config
|
|
configMap:
|
|
name: fluentd-config
|
|
- name: varlog
|
|
hostPath:
|
|
path: /var/log
|
|
- name: varlibdockercontainers
|
|
hostPath:
|
|
path: /var/lib/docker/containers |