> ## Documentation Index
> Fetch the complete documentation index at: https://docs-xcor.paloaltonetworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Pods and containers

> Configure Kubernetes Pods and containers in Palo Alto Networks Telemetry Pipeline.

<Info>
  This information is for Palo Alto Networks Telemetry Pipeline, which is a standalone
  product separate from Palo Alto Networks Cortex XCOR.
</Info>

Palo Alto Networks Telemetry Pipeline uses [Pods](https://kubernetes.io/docs/concepts/workloads/pods/)
and [containers](https://kubernetes.io/docs/concepts/containers/) to manage different
components of Palo Alto Networks Telemetry Pipeline.

## Pods

Use the information in this section to perform operations related to Pods.

### Specify pipeline Pod termination time

You can specify how long Kubernetes should wait before forcefully terminating the
Pod that runs a pipeline. To do so, add the following flag to a `create pipeline`
or `update pipeline` command:

```shell /VALUE/ theme={null}
calyptia {create|update} pipeline --termination-grace-period-seconds VALUE
```

Replace *`VALUE`* with a non-negative integer, which represents a time in seconds.
If unspecified, the default value is `30`.

For more information, see the `terminationGracePeriodSeconds`
entry in the [Kubernetes API documentation](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.33/#pod-v1-core).

## Containers

Use the information in this section to perform operations related to containers.

### Configure container lifecycle

You can configure a pipeline container to execute certain actions in response to
lifecycle events. To do so, add the following flag to a `create pipeline` or
`update pipeline` command:

```shell /JSON/ theme={null}
calyptia {create|update} pipeline --lifecycle JSON
```

Replace *`JSON`* with a JSON object that contains your lifecycle settings. You can
also pass an empty JSON object (`{}`) to remove any existing lifecycle settings.

For more information, see the `Lifecycle` entry in the
[Kubernetes API documentation](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.33/#lifecycle-v1-core).

### View `from-cloud` and `to-cloud` container logs

Each [Core Instance](/ingest/pipeline/v2/concepts#core-instance) Pod includes two containers
that synchronize pipeline resources.

* The `from-cloud` container receives updates from the Palo Alto Networks Telemetry Pipeline
  backend and pushes those updates to your Kubernetes cluster.
* The `to-cloud` container sends information about changes within
  your cluster to the Palo Alto Networks Telemetry Pipeline backend.

You can use the following kubectl command to view logs from each of these containers:

```shell /POD/ /CONTAINER/ theme={null}
kubectl logs POD CONTAINER
```

Replace the following values:

* *`POD`*: The name of the Core Instance Pod.
* *`CONTAINER`*: Either `from-cloud` or `to-cloud`.


## Related topics

- [Monitor the Collector](/ingest/metrics-traces/collector/monitor/monitor-collector.md)
- [Kubernetes](/ingest/xcor/integrations/collector/kubernetes.md)
- [Kubernetes deployment settings](/ingest/pipeline/v2/configure/kubernetes.md)
- [Add templated links to monitors](/investigate/alerts/monitors/annotation-links.md)
- [Discover Kubernetes scrape targets with the CXDOT Collector](/ingest/xcor/collector/discover/kubernetes.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.