I got the fluentd-kubernetes-daemonset charts from https://github.com/fluent/fluentd-kubernetes-daemonset, and deployed fluentd into kube-system namespace as daemonset. It sends entire cluster logs to elasticsearch. We deploy our csc application in the csc namespace. Instead of installing fluentd as daemonset to collect entire cluster logs, we would like to deploy fluentd in the csc namespace only, and only send csc logs (logs in csc namespace) to elasticsearch. Is there a way to do it?
The link you shared here which has namespace: kube-system
so that's why it got created in kube-system namespace. so to use your namespace please edit the yaml file and replace namepsace: csc
in all the places of the yaml file and apply it to kubernetes.
and you deployed as daemonsets so it will run fluentd pod on every node.