Closed shijianliang closed 1 year ago
This issue has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days
This issue was automatically closed because of stale in 30 days
The configmap created with the above content is mounted on the pod /fluentd/etc/config.d, and it is not added when the container starts.
kind: ConfigMap apiVersion: v1 metadata: name: fluentd-es-config namespace: default data: myapp.conf: |-
apiVersion: apps/v1 kind: DaemonSet metadata: name: fluentd labels: app: fluentd spec: selector: matchLabels: app: fluentd template: metadata: labels: app: fluentd containers:
root@fluentd-mp4g4:/fluentd/etc# cd config.d/ root@fluentd-mp4g4:/fluentd/etc/config.d# ls myapp.conf root@fluentd-mp4g4:/fluentd/etc/config.d# root@fluentd-mp4g4:/fluentd/etc/config.d#
However, after starting the pod, I checked the pod logs, and the printed fluent.conf content did not contain the contents of my myapp.conf file fluent/fluentd-kubernetes-daemonset:v1.15.3-debian-elasticsearch7-1.1