Skip to content

Updating fluentd docker container mount path #8179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions roles/openshift_logging_fluentd/templates/2.x/fluentd.j2
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ spec:
- name: varlog
mountPath: /var/log
- name: varlibdockercontainers
mountPath: /var/lib/docker/containers
mountPath: /var/lib/docker
readOnly: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does fluentd pod works with either /var/lib/docker or /var/lib/docker/containers without any modification? I would expect these 2 directories to contain different content.

- name: config
mountPath: /etc/fluent/configs.d/user
Expand Down Expand Up @@ -223,7 +223,7 @@ spec:
path: /var/log
- name: varlibdockercontainers
hostPath:
path: /var/lib/docker/containers
path: /var/lib/docker
- name: config
configMap:
name: logging-fluentd
Expand Down
4 changes: 2 additions & 2 deletions roles/openshift_logging_fluentd/templates/5.x/fluentd.j2
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ spec:
- name: varlog
mountPath: /var/log
- name: varlibdockercontainers
mountPath: /var/lib/docker/containers
mountPath: /var/lib/docker
readOnly: true
- name: config
mountPath: /etc/fluent/configs.d/user
Expand Down Expand Up @@ -220,7 +220,7 @@ spec:
path: /var/log
- name: varlibdockercontainers
hostPath:
path: /var/lib/docker/containers
path: /var/lib/docker
- name: config
configMap:
name: logging-fluentd
Expand Down