--- title: "Deploy Telemetry Collector in Kubernetes" slug: "deploying-telemetry-collector-in-kubernetes" tags: ["Telemetry Collector", "Kubernetes"] updated: 2026-11-20T20:36:10Z published: 2026-11-20T20:36:10Z canonical: "docs.crossworkassurance.cisco.com/deploying-telemetry-collector-in-kubernetes" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.crossworkassurance.cisco.com/llms.txt > Use this file to discover all available pages before exploring further. # Deploy Telemetry Collector in Kubernetes Which procedure should I follow? - **Cloud deployments:** Follow [this section](/latest/docs/deploying-telemetry-collector-in-kubernetes#deploy-in-cloud) of the article for instructions on deploying your Telemetry Collector in Kubernetes. - **On-Prem Controlled Availability deployments:** Follow [this section](/latest/docs/deploying-telemetry-collector-in-kubernetes#deploy-onprem-controlled-availability-only) of the article. Your deployment includes a built-in registry that simplifies container image and Helm chart downloads. For more information, see [Integrated Registry for Sensor Collector](/latest/docs/oci-registry-for-sensor-collector). **IMPORTANT Note:** All upgraded or Controlled Availability release deployments will need to enable this feature flag **OCI PROXY** from [Feature Flags](/latest/docs/crosswork-assurance-feature-flags). This is accessible to users with the tenant-admin role or to Deployment Administrators via the Platform Administration UI. **By default, all new installations will turn this feature on.** ## Deploy in Cloud This article explains how to deploy your Telemetry Collector in a Kubernetes environment and assumes you have already [configured your Telemetry Collector](/latest/docs/configure-telemetry-collector), met the [required system requirements](/latest/docs/capacity-planning-compute-requirements), have a Kubernetes cluster available that can be configured via helm and have already deployed a Gateway Sensor Collector to work with your Telemetry Collector. Note that if you want to deploy the Telemetry Collector with High Availability in a Kubenetes environment, the steps below will work sufficiently. Unlike Sensor Collector, there are no specific deployment settings required for High Availability. ### Step 1. Retrieve Telemetry Collector Helm Charts Download the Telemetry Collector helm charts to a local file and transfer to the working directory on the machine where you configure your Kubernetes cluster via helm. [telemetry-collector-ca.tgz](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/telemetry-collector-ca(1).tgz?sv=2026-02-06&spr=https&st=2026-12-01T00%3A30%3A16Z&se=2026-12-01T01%3A30%3A16Z&sr=b&sp=r&sig=WVreB8YexGavz8I%2F0%2FlffQ9YMLYAuF01k2vLOOLuYoU%3D) ### Step 2. Retrieve The Telemetry Collector Docker Image (Required only for Air gapped deployments) **NOTE** **Why is a Docker image needed in a Kubernetes environment?** In air-gapped Kubernetes environments, pods cannot pull container images directly from public registries like gcr.io. You must first download the Docker image to a machine with internet access, then transfer it to your air-gapped environment and load it into your cluster's internal OCI-compliant container registry. This allows Kubernetes to pull the image locally during pod deployment. Alternatively, if your deployment location has direct access to gcr.io, you can skip Steps 2 and 3 -- the Helm chart will pull the image automatically during installation. Download the docker image for the Telemetry Collector to a local file and transfer to the working directory on the machine where you configure your Kubernetes cluster via helm. Command for pulling the image: `` docker pull gcr.io/sky-agents/agent-telemetry-amd64:r24.09 ` Example for saving image to a file: `docker save -o agent-telemetry-amd64-r24.09.tar gcr.io/sky-agents/agent-telemetry-amd64:r24.09` Load the saved docker image into the helm machine's local docker registry. Example: `docker load -i agent-telemetry-amd64-r24.09.tar` ### Step 3. Import The Telemetry Collector Image Into The Kubernetes Cluster (Required only for Air gapped deployments) The Telemetry Collector docker image must be uploaded to the Kubernetes cluster's OCI registry. If you're using the Crosswork Assurance Kubernetes cluster, you can follow the example below. If you're using your own registry, you must upload the image to it. Example: `kubectl get secret kotsadm-replicated-registry -n pca -o jsonpath='{.data.\.dockerconfigjson}' | base64 -d {"auths":{"10.244.128.11:5000":{"auth":"ZW1iZWRkZWQtY2x1c3RlcjpsRFVkTWRqZjg5dWlGcHV6ODBvQQ=="}}}` In this case 10.244.128.11:5000 is the address of our internal registry. We will use that below. Decode the Base64 from the previous response to get our authentication credentials: Example: `echo 'ZW1iZWRkZWQtY2x1c3RlcjpsRFVkTWRqZjg5dWlGcHV6ODBvQQ==' | base64 -d embedded-cluster:lDUdMdjf89uiFpuz80oA` Use the extracted address and credentials to log into the docker registry. Example: `docker login 10.244.128.11:5000 -u embedded-cluster -p password` Re-tag the Telemetry Collector image for the PCA cluster's internal registry. Example: `docker tag gcr.io/sky-agents/agent-telemetry-amd64:r24.09 10.244.128.11:5000/pca-dev/agent-telemetry-amd64:ca` Push the re-tagged image to the PCA cluster's internal registry: Example: ` docker push 10.244.128.11:5000/pca-dev/agent-telemetry-amd64:ca `` ### Step 4. Create Agent CA Secret (For Connecting To Sensor Collector) Create a Kubernetes secret for the trusted certificate authority that will be added to the Telemetry Collector's trust store to ensure that the TLS connection to the sensor collector can be established. If you used the [Configure Sensor Collector](https://docs.accedian.io/docs/configure-sensor-collector) steps to create your certificates, you will need the myNewCa.pem file produced in step 6. If your certificate was created another way, you will have to obtain the PEM file of the certificate authority. Run the following command with your {CA_FILE} substituted in on your Kubernetes cluster. Note that you can specify your own namespace or re-use the namespace you used when setting up a Sensor Collector. Example: `` kubectl create secret generic ca-certificate-secret --from-file=ca.pem=${CA_FILE} --namespace cisco-sensor-collectors ` ### Step 5. Create Values File Create a values.yaml file that will be used by helm during the install. It must contain the following information: ` agentAgentId: {agent id retreived from PCA UI} agentAuthenticationToken: {agent token retrieved from PCA UI} agentManagement: {IP address of your sensor collector instance} agentManagementPort: {management port from the sensor collector provisioning} custom_ca_certificates: ca: enabled: true secretName: ca-certificate-secret secretKey: ca.pem image: repository: {In air gapped environments, image location updated to the local registry. For online installs gcr.io/sky-agents/agent-telemetry-amd64} imagePullSecrets: - name: {registry secret for registry setup in step 3. imagePullSecrets not required if using gcr.io/sky-agents} `` NOTE: This assumes that you have already run through the deployment steps for the sensor collector. If using PCA's registry, the pca-dev-registry pull secret is created automatically as part of the Sensor Collector installation process so you must create your telemetry collector in the same namespace. This secret provides helm the credentials to pull the Telemetry Collector image from the PCA cluster's internal registry. If you are deploying into a different namespace, you will need to create a pull secret in that namespace with the same credentials as pca-dev-registry and update the values.yaml accordingly. ### Step 6. Install The Telemetry Collector Helm install the Telemetry Collector, referencing the locally pulled chart and the values.yaml file that you just created. Note that you can specify your own namespace or re-use the namespace you used when setting up a Sensor Collector but you must use the same namespace as selected in Step 4. Example: `helm install telemetry-collector ./telemetry-collector-ca.tgz -f ./values.yaml -n cisco-sensor-collectors` ## Deploy On-Prem (Controlled Availability Only) This section covers Kubernetes deployments that pull the Telemetry Collector Helm chart and container image through the **built-in registry** included in your Crosswork Assurance deployment. The built-in registry eliminates the need for direct access to external registries and removes the manual image import steps required in air-gapped environments. For more details see [On-Prem Controlled Availability Release Notes](/latest/docs/on-prem-controlled-availability). ### Prerequisites - A Kubernetes cluster with `helm` (v3.8+) and `kubectl` configured. - Network connectivity from the cluster nodes to the Crosswork Assurance deployment (port 443). - A **Gateway Sensor Collector** already deployed in the cluster (or reachable from it) -- the Telemetry Collector connects to it for management and data transport. - A configured Telemetry Collector (agent) in the Crosswork Assurance UI -- you will need the **Agent ID** and **Authentication Token**. - The cluster's container runtime must trust the Crosswork Assurance CA certificate (if self-signed). See [Step 2](/docs/deploying-telemetry-collector-in-kubernetes#step-2-configure-container-runtime-ca-trust-if-required). ### Step 1: Obtain Registry Credentials The Telemetry Collector chart and image are pulled from the built-in registry using the same credential mechanism as the Sensor Collector. #### Option A: Use Existing Sensor Collector Credentials If you have already deployed a Sensor Collector via the built-in registry in this cluster, the `oci-proxy-pull-secret` created during that install already exists in the namespace. If deploying into the same namespace, you can reference it directly in your `values.yaml` (see [Step 4](/docs/deploying-telemetry-collector-in-kubernetes#step-4-create-values-file-1)). #### Option B: Download a Fresh Sensor Collector Helm Package If you need a fresh download token: 1. Navigate to **Sensors > Collectors > Sensor Collectors** in the Crosswork Assurance UI. 2. Select the Sensor Collector zone that the Telemetry Collector will connect to. 3. Click the ellipsis (three dots) > **Download (Kubernetes)**. 4. Extract the package and note the `.oci_token` file and `pca_ca.crt`. #### Authenticate Helm to the Built-in Registry ``` cat .oci_token | helm registry login -u x-token --password-stdin --ca-file pca_ca.crt ``` Where `<registry-host>` is your Crosswork Assurance deployment hostname. ### Step 2: Configure Container Runtime CA Trust (If Required) If your Crosswork Assurance deployment uses a self-signed TLS certificate, the container runtime on **every cluster node** must trust the Crosswork Assurance CA before `kubelet` can pull images from the built-in registry. #### For k0s (Embedded Cluster) > **Important:** Do NOT use `config_path` in containerd configuration -- it conflicts with k0s embedded registry mirrors. ``` # On EACH node: sudo mkdir -p /etc/crosswork-assurance-ca sudo cp pca_ca.crt /etc/crosswork-assurance-ca/ca.crt sudo mkdir -p /etc/k0s/containerd.d cat <".tls] ca_file = "/etc/crosswork-assurance-ca/ca.crt" TOML # k0s auto-restarts containerd when files change in /etc/k0s/containerd.d/ ``` #### For Standard containerd (non-k0s) ``` # On EACH node: sudo mkdir -p /etc/crosswork-assurance-ca sudo cp pca_ca.crt /etc/crosswork-assurance-ca/ca.crt sudo mkdir -p /etc/containerd/certs.d/ cat </hosts.toml server = "https://" [host."https://"] ca = "/etc/crosswork-assurance-ca/ca.crt" TOML sudo systemctl restart containerd ``` Replace `<registry-host>` with your Crosswork Assurance deployment hostname. > If your Crosswork Assurance deployment uses a publicly-trusted certificate, this step can be skipped. ### Step 3: Create Agent CA Secret (For Connecting to Sensor Collector) Create a Kubernetes secret containing the Certificate Authority that signed your Sensor Collector's server certificate. The Telemetry Collector uses this to establish a TLS connection to the Sensor Collector. If you used the [Configure Sensor Collector](/latest/docs/configure-sensor-collector) steps to create certificates, you will need the `myNewCa.pem` file produced in that process. Otherwise, obtain the PEM file of the CA that signed your Sensor Collector's certificate. ``` kubectl create secret generic ca-certificate-secret \ --from-file=ca.pem=${CA_FILE} \ --namespace cisco-sensor-collectors ``` > You can use your own namespace or reuse the namespace from your Sensor Collector deployment. ### Step 4: Create Values File Create a `values.yaml` file for the Helm install. The key differences from the cloud procedure are: 1. **`image.repository`** -- points to the built-in registry instead of `gcr.io` directly. 2. **`imagePullSecrets`** -- references the built-in registry pull secret (created by the Sensor Collector install, or manually created). ``` agentAgentId: "" agentAuthenticationToken: "" agentManagement: "" agentManagementPort: custom_ca_certificates: ca: enabled: true secretName: ca-certificate-secret secretKey: ca.pem image: repository: "/proxy/pca-dev/gcr.io/sky-agents/agent-telemetry-amd64" imagePullSecrets: - name: oci-proxy-pull-secret ``` Replace the following placeholders: | Placeholder | Value | | --- | --- | | `<agent-id-from-ui>` | The Agent ID from the Crosswork Assurance UI | | `<agent-token-from-ui>` | The Authentication Token from the UI | | `<sensorcollector-ip-or-service>` | IP address or Kubernetes service name of your Gateway Sensor Collector | | `<management-port>` | Agent Proxy port from your Sensor Collector configuration (default: 55777, or NodePort, e.g., 30777) | | `<registry-host>` | Your Crosswork Assurance deployment hostname | > **Note:** If you deployed your Sensor Collector via the built-in registry in the same namespace, the `oci-proxy-pull-secret` already exists. If deploying into a different namespace, you must create a pull secret with the same credentials. ### Step 5: Pull the Helm Chart from the Built-in Registry ``` helm pull oci:///proxy/pca-dev/gcr.io/sky-agents/charts/telemetry-collector \ --version \ --ca-file pca_ca.crt ``` This downloads the chart `.tgz` file to your current directory. ### Step 6: Install the Telemetry Collector ``` helm install telemetry-collector ./telemetry-collector-.tgz \ -f ./values.yaml \ -n cisco-sensor-collectors ``` > You can specify your own namespace, but it must match the namespace used in Steps 3 and 4. #### Verify the Deployment ``` kubectl get pods -n cisco-sensor-collectors | grep telemetry ``` Check the logs for successful startup: ``` kubectl logs -n cisco-sensor-collectors deployment/telemetry-collector ``` Look for management and data connection logs indicating successful authentication. ### Troubleshooting | Symptom | Cause | Resolution | | --- | --- | --- | | `x509: certificate signed by unknown authority` | Container runtime doesn't trust the Crosswork Assurance CA | Complete Step 2 on all cluster nodes | | `unauthorized: authentication required` | Download token expired or pull secret missing | Re-download the Sensor Collector package or verify `imagePullSecrets` | | `ErrImagePull` or `ImagePullBackOff` | Registry unreachable or CA trust issue | Verify network connectivity and containerd CA configuration | | Pod starts but no data flows | Sensor Collector CA secret missing or wrong port | Verify `ca-certificate-secret` exists and port matches Sensor Collector config | **© 2026 Cisco and/or its affiliates. All rights reserved.** For more information about trademarks, please visit: [Cisco trademarks](https://www.cisco.com/c/en/us/about/legal/trademarks.html)[](https://www.cisco.com/c/en/us/about/legal/trademarks.html) For more information about legal terms, please visit: [Cisco legal terms](https://www.cisco.com/c/en/us/about/legal/terms-conditions.html)