Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.

Migrate FluentD Conf files to ConfigMap to make customizing FluentD conf simpler. #124

Merged
merged 2 commits into from
Apr 18, 2019

Conversation

frankreno
Copy link
Contributor

Move FluentD configuration files to ConfigMap to make it easier to customize.

@@ -38,6 +41,33 @@ spec:
readOnly: true
- name: pos-files
mountPath: /mnt/pos/
- name: fluentd-sumologic-config
Copy link
Contributor

Choose a reason for hiding this comment

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

is there any reason not just mount whole directory other than individual files?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Current Docker image seperates config across 2 directories. /fluentd/etc and fluentd/conf.d. So this was done this way to preserve and have a single configmap. Other options would be:

  • 2 config maps for each directory, then just have 2 volumens and mounts.
  • Change entrypoint script and keep all config in single dir

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made changes to simplify this...

Copy link
Contributor

@bin3377 bin3377 left a comment

Choose a reason for hiding this comment

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

LGTM

@frankreno frankreno merged commit 9a43996 into master Apr 18, 2019
@bendrucker
Copy link
Contributor

@frankreno How is this going to square with the Helm chart? Seems like this would effectively require duplicating the ConfigMap here and in the chart. I generally like the move. Would love to continue to make new sources more declarative/DRY.

@frankreno
Copy link
Contributor Author

@bendrucker : sorry for the delay. We still need to get the release out however, we do need to square this away in there once we cut a new release. We still need to figure out the management to avoid 2 sets of config long term.

@bin3377 bin3377 deleted the migrate-to-configmap branch May 31, 2019 18:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants