# Tart our Pod configured with a streaming sidecar container

**URL:** <https://discuss.kubernetes.io/t/tart-our-pod-configured-with-a-streaming-sidecar-container/13031>\
**Category:** General Discussions\
**Created:** [September 29, 2020, 10:26am UTC](https://discuss.kubernetes.io/t/tart-our-pod-configured-with-a-streaming-sidecar-container/13031 "2020-09-29T10:26:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harsha8323](https://avatars.discourse-cdn.com/v4/letter/h/c57346/32.png) [@Harsha8323](https://discuss.kubernetes.io/u/Harsha8323)\
**Post date:** [September 29, 2020, 10:26am UTC](https://discuss.kubernetes.io/t/tart-our-pod-configured-with-a-streaming-sidecar-container/13031/1 "2020-09-29T10:26:51Z")

</div>

```auto
kubectl apply -f https://raw.githubusercontent.com/timberio/examples/master/kubernetes/reading-log-files-from-containers/logging-app-pod-sidecar-log-streamer.yaml

```

How do we add Sidecar container to running pod?

---

<div class="post-metadata">

**Author:** ![Theog75](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/theog75/32/9241_2.png) [@Theog75](https://discuss.kubernetes.io/u/Theog75)\
**Post date:** [January 29, 2022, 12:21pm UTC](https://discuss.kubernetes.io/t/tart-our-pod-configured-with-a-streaming-sidecar-container/13031/4 "2022-01-29T12:21:54Z")

</div>

You have to configure the sidecar container in a deployment/statefulset/daemonset and redeploy

---

<div class="post-metadata">

**Author:** ![ga2022](https://avatars.discourse-cdn.com/v4/letter/g/6f9a4e/32.png) [@ga2022](https://discuss.kubernetes.io/u/ga2022)\
**Post date:** [January 30, 2022, 3:20am UTC](https://discuss.kubernetes.io/t/tart-our-pod-configured-with-a-streaming-sidecar-container/13031/5 "2022-01-30T03:20:02Z")

</div>

To add sidecar to an existing pod, you can generate the pod yaml using -oyaml \> newpodfile.yaml

Or you can edit the pod and a the configuration will be saved under /tmp.

Also, review the kubernetes documenation below. The doc contains a sample configuration file for a pod that has two sidecar containers:

> **[Logging Architecture](https://kubernetes.io/docs/concepts/cluster-administration/logging/)**
>
> Application logs can help you understand what is happening inside your application. The logs are particularly useful for debugging problems and monitoring cluster activity. Most modern applications have some kind of logging mechanism. Likewise,...
