Mark Fickett
10/28/2022, 2:37 PMdaniel
10/28/2022, 3:03 PMMark Fickett
11/04/2022, 6:03 PMworkspace.volumes
. I'm not sure how that differs from @job tags pod_spec_config volumes
, but I like dealing with this in the Helm / kubernetes arena rather than the @job
arena if they're equivalent.ConfigMap
to the job? I'm trying to follow this example for a fluentd sidecar. I think I can use the @graph.to_job(tags=...)
to specify the additional containers
and volumes
for the pod, and the additional volumeMount
for the user code container, but I'm not sure where a ConfigMap
fits in.
Here's what I have so far. Specifically, I'm looking for how to add in fluentd.conf
data in the configvol
volume based on the admin/logging/fluentd-sidecar-config.yaml
in the example.ConfigMap
into my cluster, and then just reference it by name from my @job
. It seems a little odd to have my @job
know about my EKS cluster config, but also makes sense that etcd
contents would not be defined on the job.daniel
11/16/2022, 6:38 PMMark Fickett
11/18/2022, 6:23 PM@job
. According to documentation these only affect the k8s run launcher / job per pod, and not the job per step mode which is what I'm using.
• volumes
and volumeMounts
in the agent's Helm chart. These did add the host volume mount I needed, mapping in /var/log
to my step pods. So then my application code can write out a JSON-formatted log file that fluent-bit
can see.
• fluent-bit
as a daemonset. By default this maps /var/log
into the fluent-bit container, so I didn't need to define extra volumes on that side. And the fluent-bit
Helm chart has options for its config file which it then publishes as a ConfigMap, so I didn't need to separately set up a ConfigMap.
All in all, pretty concise and nicely organized; for the most part the application code remains agnostic of the deployment configuration.