<p>I want to create a helm chart for my users who wants to deploy there own logging stack in my PaaS, my api is pretty much exactly the same as openshift api, but i don't know how a user can deploy fluentd in there project and get all the logs of all the pods inside of that project.</p>

tahacodes
<p>To get the logs of all the pods inside a project, one could use a bash script:</p>
<pre><code>#!/usr/bin/env bash
for p in $(oc get pods -n $1 | cut -f 1 -d ' ' | tail -n +2); do
    oc logs $p
done
</code></pre>
<ol>
<li>Save the code as <code>pods-all-ns.sh</code></li>
<li>Run the bash script using the command line providing the project name <code>./pods-all-ns.sh default</code></li>
</ol>
<p>To get all the logs of all the pods of a deployment, one could a label selector <code>oc logs -l service=logevents</code></p>
